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 08 Dec 2025 05:52 PM study24x7 study24x7

Which traversal gives nodes in sorted order for a BST?

A

Preorder

B

Postorder

C

Inorder

D

Level order

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 08 Dec 2025 05:49 PM study24x7 study24x7

What is the time complexity of searching an element in an AVL tree?

A

O(n)

B

O(log n)

C

O(1)

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 08 Dec 2025 05:41 PM study24x7 study24x7

Which data structure is used to convert infix to postfix expression?

A

Queue

B

Stack

C

Tree

D

Heap

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 05 Dec 2025 04:38 PM study24x7 study24x7

In a complete binary tree, the height is:

A

log n

B

n

C

n log n

D

constant

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 05 Dec 2025 04:38 PM study24x7 study24x7

Hash collisions can be handled by:

A

Resizing memory

B

Chaining

C

Segmentation

D

Paging

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 05 Dec 2025 04:31 PM study24x7 study24x7

Which of the following is not a stable sorting algorithm?

A

Bubble Sort

B

Merge Sort

C

Selection Sort

D

Insertion Sort

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: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
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