GATE Programming, Data Structures and Algorithms: Stacks, queues, linked lists, trees and hash tables – Previous Year Questions
8 GATE previous year questions on Stacks, queues, linked lists, trees and hash tables (Programming, Data Structures and Algorithms, Data Science and Artificial Intelligence) with answers and explanations, from every paper.
- GATE 2024 DA Q16 – Match the items in Column 1 with the items in Column 2 in the following table: Column 1 Column 2 --- --- (p) First In First Out (i) Stacks (q) Lookup…
- GATE 2024 DA Q21 – Consider performing uniform hashing on an open address hash table with load factor = nm < 1, where n elements are stored in the table with m slots.…
- GATE 2024 DA Q28 – Consider the following tree traversals on a full binary tree: (i) Preorder (ii) Inorder (iii) Postorder Which of the following traversal options…
- GATE 2024 DA Q32 – The fundamental operations in a double-ended queue D are: insertFirst(e) – Insert a new element e at the beginning of D. insertLast(e) – Insert a new…
- GATE 2024 DA Q52 – Let H, I, L, and N represent height, number of internal nodes, number of leaf nodes, and the total number of nodes respectively in a rooted binary…
- GATE 2025 DA Q18 – Consider a hash table of size 10 with indices \0, 1, , 9\, with the hash function h(x) = 3x 10, where linear probing is used to handle collisions. The…
- GATE 2025 DA Q64 – Consider the following pseudocode. The value of sum output by a program executing the above pseudocode is (*Answer in integer*)
- GATE 2026 DA Q25 – You are given the following Pre-order and In-order traversals of a Binary Tree T with nodes E, F, G, P, Q, R, S. Pre-order: P Q S E R F G In-order: S…