3 ms·
This is straight out of my homework for an introductory to CS class. If I can recall, we need an IF statement to detect whether the element IS INT, else length
by QML 10y ago
This is straight out of my homework for an introductory to CS class. If I can recall, we need an IF statement to detect whether the element IS INT, else length of list. Then just add [Int] or list[:] to the new list.
Ok point being: I didn't believe what I was learning was relevant to industry, in particular linked lists.