Loading…
Data Structures & Algorithms · short notes, key points and practice questions.
Linear data structures and the algorithms built on them: arrays and strings, singly and doubly linked lists, stacks, queues and hash tables, along with searching and sorting. Placement tests ask for time and space complexity, exact counts from code, infix–postfix conversion, probe sequences in hashing, and the properties of the standard sorts.
list.pop(0), Java string += inside a loop (use StringBuilder)^ is right-associative^ as left-associative during infix → postfix conversionAnswer: A. O(1)
Answer: C. 7
Answer: D. 3 1 2 5 4
Answer: B. 11
Answer: B. Stack