Data Structures and Algorithms - Study24x7
Social learning Network

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
datastructuresalgorithms Cover image
datastructuresalgorithms
Data Structures and Algorithms

  • Warning: Use of undefined constant Followers - assumed 'Followers' (this will throw an Error in a future version of PHP) in /var/www/html/live/makepage.php on line 1760
    Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
Java Technologies Python Technologies Computer Programming Software Developer
See more

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 04 Dec 2025 01:07 PM study24x7 study24x7

What is the worst-case time complexity of Quick Sort?

A

O(n log n)

B

O(n²)

C

O(log n)

D

O(n)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 04 Dec 2025 01:05 PM study24x7 study24x7

Which data structure is best suited for implementing recursion?

A

Queue

B

Stack

C

Heap

D

Tree

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 04 Dec 2025 12:55 PM study24x7 study24x7

Which technique reduces the number of disk accesses in a database index?

A

Hashing

B

B-Tree

C

AVL Tree

D

Stack

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 03 Dec 2025 11:50 AM study24x7 study24x7

Which structure is best for implementing priority scheduling?

A

Stack

B

Min-Heap

C

Queue

D

Linked List

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 03 Dec 2025 11:50 AM study24x7 study24x7

Space complexity of DFS using recursion?

A

O(1)

B

O(V)

C

O(log V)

D

O(E)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 03 Dec 2025 11:49 AM study24x7 study24x7

Time complexity of BFS on an adjacency list?

A

O(V²)

B

O(V + E)

C

O(E log V)

D

O(log V)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 02 Dec 2025 01:18 PM study24x7 study24x7

Longest Common Subsequence (LCS) uses:

A

Greedy

B

Dynamic Programming

C

Backtracking only

D

Divide and Conquer

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 01 Dec 2025 01:23 PM study24x7 study24x7

Which of the following uses memoization?

A

Greedy

B

Divide and Conquer

C

Dynamic Programming

D

Branch and Bound

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 01 Dec 2025 01:22 PM study24x7 study24x7

What is the height of an AVL tree with n nodes?

A

O(1)

B

O(n)

C

O(log n)

D

O(n log n)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 01 Dec 2025 01:21 PM study24x7 study24x7

Which structure is best for implementing LRU cache?

A

Queue + Array

B

Stack + Map

C

Hash Map + Doubly Linked List

D

Heap + Queue

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 28 Nov 2025 12:35 PM study24x7 study24x7

Which one is a NP-complete problem?

A

BFS

B

DFS

C

Hamiltonian Cycle

D

Kruskal

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 28 Nov 2025 12:33 PM study24x7 study24x7

Which of these is not a characteristic of a skip list?

A

Probabilistic balancing

B

Multiple levels

C

Deterministic height

D

Expected O(log n) search

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 28 Nov 2025 12:30 PM study24x7 study24x7

Which algorithm is used to find articulation points?

A

BFS

B

Tarjan’s Algorithm

C

Floyd-Warshall

D

Kruskal

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 27 Nov 2025 12:52 PM study24x7 study24x7

What is the time complexity of Rabin-Karp string search?

A

O(n) worst case

B

O(n+m)

C

O(nm)

D

O(log n)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 27 Nov 2025 12:49 PM study24x7 study24x7

Which algorithm is used for topological sorting?

A

BFS

B

DFS

C

Heap

D

Greedy

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 27 Nov 2025 12:45 PM study24x7 study24x7

What is the worst-case time for deleting a key from a B-Tree?

A

O(log n)

B

O(n)

C

O(h²)

D

O(1)

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 26 Nov 2025 12:43 PM study24x7 study24x7

Kruskal’s algorithm uses which data structure?

A

Queue

B

Priority Queue

C

Union-Find

D

Hash Map

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
5 followers study24x7 26 Nov 2025 12:42 PM study24x7 study24x7

Optimal method to detect a cycle in a linked list?

A

Counting nodes

B

Hashing

C

Floyd’s Tortoise-Hare

D

Stack

study24x7
Write a comment
Ratings
0.0
out of 5
0 Ratings
5 study24x7
 
0.0
4 study24x7
 
0.0
3 study24x7
 
0.0
2 study24x7
 
0.0
1 study24x7
 
0.0
Related Pages