Crowdly
Додати до Chrome
Questions Bank (1441087 total)
What is the time complexity of the recursive solution for Fibonacci Sequence?
O(n)
❌
O(2^n)
✅
O(log n)
❌
O(n^2)
❌
Переглянути це питання
What is the complexity of nested 2 loops with the different array length?
O(1)
❌
O(n*m)
✅
O(log n)
❌
O(n^2)
❌
Переглянути це питання
What is the purpose of heapify in a heap?
To delete an element from the heap
0%
To calculate the heap's height
0%
To insert an element into the heap
0%
To ensure the heap property is maintained
0%
Переглянути це питання
What is the time complexity of a binary search algorithm?
O(n)
❌
O(1)
❌
O(log n)
✅
O(n^2)
❌
Переглянути це питання
What is the purpose of a load factor in a hash table?
To decide when to resize the table
0%
To calculate collisions
0%
To determine the hash function
0%
To map keys to buckets
0%
Переглянути це питання
What is the Big-O of the following cycle: for (int number:arr) {System.out.println(number);}
O(n)
0%
O(2^n)
0%
O(log n)
0%
O(n^2)
0%
Переглянути це питання
What is the main advantage of a heap data structure?
Requires less memory than a binary search tree.
❌
Allows quick access to the maximum or minimum element.
✅
Avoids the need for balancing.
❌
Provides constant time for all operations.
❌
Переглянути це питання
What is the complexity of extracting the largest element from the max-heap?
O(n)
0%
O(1)
0%
O(log n)
0%
O(n log n)
0%
Переглянути це питання
What is the base case in recursion?
The maximum depth of recursion.
❌
The case where the function calls itself.
❌
The part of a function where recursion stops.
✅
The starting point of recursion.
❌
Переглянути це питання
Which of the following is a valid property of a binary search tree?
Each path from the root to a leaf has the same length.
0%
Each node must have exactly two children.
0%
All levels of the tree must be filled.
0%
The left subtree contains values smaller than the root, and the right subtree contains values larger than the root.
0%
Переглянути це питання
Попередня
1
Більше сторінок
141572
141573
141574
141575
141576
Більше сторінок
144109
Наступна
Telegram
Instagram
TikTok
Question Bank
Умови використання
Зв'яжіться з нами
Додати до Chrome