Below are of some of the very popular data structures question which is asked in various companies hirings. These questions are asked from candidates having 2 to 15 years of experience in the industry.
Some sites :
Some sites :
https://letsalgo.com/
- Reverse a String using Stack
- Sort a stack using recursion
- Next Greater Element
- Implement Stack using Queues
- Largest Rectangular Area in a Histogram
- Iterative Postorder Traversal
- Iterative Preorder Traversal
- Iterative inorder Traversal
- Expression evaluation
- Reverse a linked list
- Detect and Remove Loop in a Linked List
- Merge two sorted linked lists
- Intersection point of two Linked Lists.
- Pairwise swap elements of a given linked list
- Merge Sort for Linked Lists
- Convert a given Binary Tree to Doubly Linked List
- Merge Sort for Doubly Linked List
- Implement Queue using Stacks
- Implement LRU Cache
- Print Postorder traversal from given Inorder and Preorder traversals
- Print a Binary Tree in Vertical Order
- Boundary Traversal of binary tree
- Root to leaf path sum equal to a given number
- How to determine if a binary tree is height-balanced?
- Write a Program to Find the Maximum Depth or Height of a Tree
- Write Code to Determine if Two Trees are Identical
- Connect nodes in trees at same level
- Print Ancestors of a given node in Binary Tree
- Given a binary tree, print all root-to-leaf paths
- Vertical Sum in a given Binary Tree
- Print Left View of a Binary Tree
- Check if all leaves are at same level
- Check if a binary tree is subtree of another binary tree
- Print Right View of a Binary Tree
- Print all nodes at distance k from a given node
- Lowest Common Ancestor in a Binary Tree
- Print Nodes in Top View of Binary Tree
- Maximum Path Sum in a Binary Tree
- Diameter of a Binary Tree in O(n)
- Inorder predecessor and successor for a given key in BST
- Check if a binary tree is BST or not
- Lowest Common Ancestor in a Binary Search Tree.
- Sorted order printing of a given array that represents a BST
- Inorder Successor in Binary Search Tree
- Find k-th smallest element in BST
- Sorted Linked List to Balanced BST
- Check whether two strings are anagram of each other
- Print all pairs of anagrams in a given array of strings
- Longest Palindromic Substring
- Longest Non-palindromic substring
- Longest common subsequence
- Implementation of atoi()
- Detect Cycle in a Directed Graph
- Topological Sorting
- n-QueenĂs Problem
- Find the number of islands
- Largest Sum Contiguous Subarray
- Longest Increasing Subsequence
- Maximum Sum Increasing Subsequence
- Longest Common Substring
No comments:
Post a Comment