- Reverse a Linked List - LinkedListReversal.java
- Get Square Root of a given number - SquareRoot.java
- Count Occurance of a given number in sorted array - SortedOccurenceCounter.java
- Finding GCD of two numbers - GCDFinder.java
- Print all valid combinations of groups of parenthesis - ParenthesisCombinationPrinter.java
- Convert a double number to rational - DoubleToRational.java
- String Permutation - PrintAllStringPermutations.java
- Find the 1st index of a given number in a sorted array allowing duplicates - IndexInSortedArray.java
- Verify if a binary tree is a Binary Search Tree (BST) - BSTVerifier.java
- Print BTree in pre order, post order, in order and level order - BTreeTraversal.java
- Verify if a string is a rotated palindrome - RotatedPalindrome.java
- Print all pairs in a sorted array that sum to M - PairsWithSumFinder.java
- Use stack (LIFO) to simulate queue (FIFO) - QueueWithStack.java
- There are two sorted arrays. First one is of size m+n containing only m elements. Another one is of size n and contains n elements. Merge these two arrays into the first array of size m+n such that the output is sorted - SortedArraysMerger.java
- Verify if strings are rotations of each other or not - RotatedString.java
- To design a tiny URL or URL shortener - ShortURLGenerator.java
- Write a Pseudo code to parse a String and and evaluate expressions - StringExpressionEvaluator.java
- Code to find number of ways to cover n stairs when you can take 1 or 2 step at a time - StairwayClimbWaysFinder.java
- Generic implementation of BlockingQueue - BlockingQueue.java
- Simple thread pool implementation in Java - ThreadPoolManager.java
- Merge an array of size n into another array of size m+n - MPlusNArrayMerge.java
- Given a number n, print all primes smaller than or equal to n - PrimeNumberPrinter.java
- Print BTree is spiral order - BTreeTraversal.java
- Given an array of positive integers, arrange the numbers to form the largest possible number - FormLargestNumber.java
- Give a circle with center (0,0) and a radius r (integer > 0), find the number of points (x,y) on the circumference such that x and y both are integers - IntegralPointsOnCirle.java
- Find if a given Singly Linked list is a palindrome or not - LinkedListPalindromeFinder.java
- Print even and odd numbers in order using two threads - PrintOddEven.java
- Find the middle element of a linked list - LinkedListMidFinder.java
- Find the Lowest Common Ancestor (LCA) of two nodes in a Binary Tree - LCAFinder.java
-
Notifications
You must be signed in to change notification settings - Fork 3
aniket91/DataStructures
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Data Structures Interview Questions in Java
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published