Question
An undirected graph has 8 vertices (1 to 8) and the edges 1-2, 2-3, 4-5, 6-7, 7-8 and 6-8. How many connected components does the graph have?
More Data Structure Questions
- A hash table of size 7 uses h(k) = k mod 7 with linear probing. The keys 15, 22, 29, 8 and 36 are inserted in this order. In which slot does key 36 get sto...
- Which of the following types of software testing ensures that previously working functionality is still operational after changes?
- Which data structure is used in recursion?
- A programmer is implementing a data analysis tool that frequently needs to append elements to a collection. If an array is used, what is a potential perfor...
- Deletion in Red-Black Tree may require:
- Using a stack-based algorithm to check balanced brackets, is the string '{[(])}' valid, and at which character does it first fail (if any)?
- Which data structure is used internally by a programming language's runtime to implement function calls and recursion?
- What is a key advantage of containerization over traditional virtual machines?
- Quicksort is applied to an already-sorted array of size n, always choosing the first element as the pivot. What is the time complexity of this scenario?
- In Merge Sort, what is the maximum number of comparisons required to merge two already-sorted subarrays of sizes 4 and 3 into a single sorted array of size...
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)