Search
Question: Which of the following algorithms is used for topological sorting in a directed acyclic gr..
Question: Which of the following is true about a queue?Options: LIFO structureFIFO structureRandom a..
Question: What is the time complexity of the binary search algorithm?Options: O(n)O(log n)O(n log n)..
Question: Which sorting algorithm has the best average time complexity?Options: Bubble SortInsertion..
Question: What is the time complexity of merging two sorted arrays of sizes m and n?Options: O(m + n..
Question: What is the space complexity of a recursive function that uses a stack to store function c..
Question: Given a linked list, how can you determine if it contains a cycle?Options: Using a hash ta..
Question: Which of the following is NOT a characteristic of arrays?Options: Fixed sizeRandom accessD..
Question: What is the time complexity of deleting an element from a linked list when you have a poin..
Question: What is the worst-case time complexity for bubble sort?Options: O(n)O(n log n)O(n^2)O(log ..
Question: Which data structure is more memory efficient for storing a list of items with frequent in..
Question: Which of the following sorting algorithms has the worst-case time complexity of O(n^2)?Opt..
Question: In a queue, what is the time complexity of enqueue operation?Options: O(1)O(n)O(log n)O(n^..
Question: Which of the following operations has a time complexity of O(1) in a stack?Options: PushPo..
Question: What is the time complexity of traversing a linked list with \'n\' nodes?Options: O(1)O(n)..
Question: In a singly linked list, what is the time complexity of inserting a new node at the beginn..
Question: What is the average time complexity of searching for an element in a sorted array using bi..
Question: What is the space complexity of a recursive function that uses a stack for function calls?..
Question: What is the time complexity of the quicksort algorithm in the worst case?Options: O(n)O(n ..
Question: What is the time complexity of a linear search in an unsorted array?Options: O(1)O(n)O(log..
Question: What is the time complexity of deleting an element from a singly linked list when the poin..
Question: In a binary search tree, what is the time complexity for inserting an element in the avera..
Question: What is the time complexity of traversing a binary tree with n nodes?Options: O(n)O(log n)..
Question: What is the average time complexity of inserting an element into a hash table?Options: O(1..
Question: In which data structure is the \'Last In First Out\' (LIFO) principle applied?Options: Que..
Question: What is the space complexity of a recursive function that uses a stack to perform depth-fi..
Question: In a binary tree, what is the time complexity of traversing all nodes using in-order trave..
Question: What is the time complexity of deleting an element from a queue implemented using a linked..
Question: What is the worst-case time complexity for searching an element in an unsorted linked list..
Question: In a binary search tree, what is the time complexity for searching for an element in the a..