Top 50 Data structure questions
Posted by admin at November 6, 2019
- Write a program to find the missing number in a given integer array of 1 to 100.
- Write a program to find the duplicate number on a given integer array.
- Write a program to find the largest and smallest number in an unsorted integer array.
- Write a program to find all pairs of an integer array whose sum is equal to a given number.
- Write a program to find duplicate numbers in an array if it contains multiple duplicates.
- How are duplicates removed from a given array in Java.
- How is an integer array sorted in place using the quick-sort algorithm.
- Write a program to remove duplicates from an array in place.
- Write a program to reverse an array in place in Java.
- How are duplicates removed from an array without using any library.
- Write a program to find the middle element of a singly linked list in one pass.
- Write a program to check if a given linked list contains a cycle.
- Write a program to find the starting node of the cycle.
- Write a program to reverse a linked list.
- Write a program to reverse a singly linked list without recursion.
- How are duplicate nodes removed in an unsorted linked list.
- Write a program to find the length of a singly linked list.
- Write a program to find the third node from the end in a singly linked list.
- Write a program to find the sum of two linked lists using Stack.
- Write a program to print duplicate characters from a string.
- Write a program to check if two strings are anagrams of each other.
- Write a program to print the first non-repeated character from a string.
- How can a given string be reversed using recursion.
- Write a program to check if a string contains only digits.
- How are duplicate characters found in a string.
- Write a program to count a number of vowels and consonants in a given string.
- Write a program to count the occurrence of a given character in a string.
- Write a program to find all permutations of a string.
- Write a program to reverse words in a given sentence without using any library method.
- Write a program to check if two strings are a rotation of each other.
- Write a program to check if a given string is a palindrome.
- How is a binary search tree implemented.
- Write a program to perform pre-order traversal in a given binary tree.
- Write a program to traverse a given binary tree in pre-order without recursion.
- Write a program to perform an in-order traversal in a given binary tree.
- Write a program to print all nodes of a given binary tree using in-order traversal without recursion.
- Write a program to implement a post-order traversal algorithm.
- Write a program to traverse a binary tree in post-order traversal without recursion.
- How are all leaves of a binary search tree printed.
- Write a program to count a number of leaf nodes in a given binary tree.
- Write a program to perform a binary search in a given array.
- How is a bubble sort algorithm implemented.
- How is an iterative quick-sort algorithm implemented.
- Write a program to implement an insertion sort algorithm.
- How is a merge sort algorithm implemented.
- Write a program to implement a bucket sort algorithm.
- Write a program to implement a counting sort algorithm.
- How is a radix sort algorithm implemented.
- Write a program to swap two numbers without using the third variable.
- Write a program to check if two rectangles overlap with each other.
- Write a program to design a vending machine.
Related
Comments