Arrays and Linked Lists - Implementations in Python - Numerical Applications

Download Q&A
Q. In a stack implemented using an array, what is the time complexity of the push operation?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In Python, which data structure can be used to implement a stack?
  • A. List
  • B. Dictionary
  • C. Set
  • D. Tuple
Q. Which of the following is a valid way to append an element to a linked list in Python?
  • A. list.append(value)
  • B. linked_list.add(value)
  • C. linked_list.append(value)
  • D. list.add(value)
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely