├── .gitignore ├── Java Spring Hibernate General.pdf ├── README.md └── src ├── arrays ├── allevennumberstoleft │ └── AllEvensToLeftandOddsToRight.java ├── allpathsinamatrix │ └── AllPathsInAMatrix.java ├── ascsubsequencemaxproduct │ ├── SubsequenceProduct.java │ └── Test.java ├── circularshiftintarray │ ├── CircularShiftArray.java │ └── Test.java ├── fillmatrixwithones │ └── FillBinaryMatrixWithOnes.java ├── findarray │ ├── FindArray.java │ └── FindArrayImpl.java ├── findduplicatecountsortedarray │ └── DuplicatesCountInSortedArray.java ├── findpairsequaltosum │ └── FindPairsEqualToSum.java ├── indexequaltonumbersortedarray │ └── IndexEqualToNumberSortedArray.java ├── maxsubarray │ ├── FindMaxSubArray.java │ └── TestMax.java ├── mindiffsortedarrays │ └── MinimumDifferenceSortedArrays.java ├── numberfrequency │ └── PrintNumbersWithFrequency.java ├── numberwithhighestfreq │ └── FindNumberWithHighestFreq.java ├── randomizearray │ └── RandomizeArray.java ├── searchrotatedsortedarray │ └── SearchInRotatedSortedArray.java └── test │ ├── TestFindPairsEqualToSum.java │ ├── TestMoveAllEvensToLeft.java │ └── TestPrintNumbersWithFrequency.java ├── collections ├── cartesianproblem │ └── CartesianOfLists.java ├── commonelementsortedsets │ └── FindCommonElementsInSortedSetsOrLists.java ├── customlinkedlist │ ├── Link.java │ ├── LinkedList.java │ └── LinkedListImpl.java ├── detectlinkedlistloop │ └── DetectLinkedListLoop.java ├── findNTHlastelement │ └── FindNthLastElement.java ├── loopstartlinkedlist │ └── FindStartPointOfLoop.java ├── nestedliststring │ └── NestedList.java ├── nestedlistsum │ └── NestedListSum.java ├── removeduplicatesfromlinkedlist │ └── RemoveDuplicatesFromLinkedList.java ├── reverselinkedlist │ └── ReverseLinkedList.java └── test │ ├── TestCartesianOfLists.java │ ├── TestNestedList.java │ ├── TestNestedListSum.java │ └── TestNthElementInLinkList.java ├── customiterator ├── Animal.java ├── AnimalIterator.java └── TestIterator.java ├── graphs ├── breadthfirstsearch │ └── BFS.java ├── depthfirstsearch │ └── DFS.java ├── filedependencyresolution │ ├── FileDependency.java │ ├── FileDependencyImpl.java │ ├── FileOptions.java │ └── client │ │ └── FileDependencyClient.java ├── graph │ ├── AbstractGraph.java │ ├── DirectedGraph.java │ ├── Graph.java │ ├── UnDirectedGraph.java │ └── Vertex.java └── test │ └── TestDG.java ├── heaps ├── heap │ ├── AbstractHeap.java │ ├── Heap.java │ ├── MaxHeap.java │ ├── MinHeap.java │ └── model │ │ └── Node.java └── test │ └── TestMaxHeap.java ├── maps ├── customhashmap │ ├── CustomHashMap.java │ └── CustomHashMapImpl.java ├── lrucache │ └── LRUCache.java ├── sortofvaluesinmap │ └── SortOnValuesInMap.java └── test │ ├── TestCustomMap.java │ └── TestLRUCache.java ├── numberproblems ├── concatenatenumbers │ └── ConcatenateNumbers.java ├── convertstringtonumber │ └── ConvertStringToNum.java ├── exponentialnumber │ └── ExponentialOfNumber.java ├── factorial │ ├── Factorial.java │ └── FactorialNoOfTrailingZeroes.java ├── findmissingnumber │ └── FindMissingNumber.java ├── oddoreven │ └── OddOrEven.java ├── printprimefactors │ └── PrintPrimeFactorsOfANumber.java ├── productofdigitsequaltonumber │ └── ProductOfDigitsEqualToNumber.java ├── swapnumbers │ └── SwapNumbers.java └── test │ ├── TestConvert.java │ ├── TestFindMissingNumber.java │ └── TestSwap.java ├── objects ├── cloning │ └── linkedlistclone │ │ └── LinkedListCloning.java ├── immutableclass │ ├── ImmutableClass.java │ └── TestImmutability.java ├── passbyvalue │ ├── Dog.java │ └── PassByValue.java └── singleton │ ├── SingletonUsingDoubleCheckLocking.java │ └── SingletonUsingStatic.java ├── sorting ├── algorithms │ ├── BubbleSort.java │ ├── InsertionSort.java │ ├── MergeSort.java │ ├── QuickSort.java │ ├── SelectionSort.java │ └── ShellSort.java └── test │ └── TestSorting.java ├── stackqueues ├── customstackwithpushpopgetmin │ ├── CustomStack.java │ ├── CustomStackImpl.java │ └── TestCustomStack.java ├── parenthesismatching │ └── ParenthesisMatching.java ├── queueusingstack │ └── QueueUsingStack.java └── stacksorting │ └── StackSorting.java ├── strings ├── checkpalindrome │ └── CheckPalindrome.java ├── distancebetweenwords │ └── DistanceBetweenWords.java ├── findcommonprefix │ └── CommonPrefix.java ├── findduplicates │ └── FindDuplicates.java ├── findlatestversion │ ├── FindLatestVersion.java │ └── TestFindLatestVersion.java ├── findlongestcommonsubsequence │ └── LCS.java ├── findlongestpalindrome │ ├── FindLongestPalindrome.java │ └── Test.java ├── findpermutations │ ├── FindPermutations.java │ └── TestPermutations.java ├── findtotalpalindromes │ ├── FindTotalNoOfPalindromes.java │ └── Test.java ├── firstnonrepeatedchar │ ├── FirstNonRepeatedChar.java │ └── Test.java ├── isomorphicstrings │ └── Isomorphic.java ├── longestsubstringnorepeatedchar │ └── LongestSubstringUnrepeatedChar.java ├── minimumsubstringcontains │ └── MinimumSubstring.java ├── printdiamonds │ ├── PrintDiamonds.java │ └── TestDiamonds.java ├── repeatingstringsofspecifiedlength │ └── RepeatingStringOfSpecificLength.java ├── reversestring │ ├── ReverseString.java │ └── Test.java ├── segmentstringfindalldictwords │ └── StringSegmentation.java ├── stringsubsequencecheck │ ├── CheckStringSubsequence.java │ └── TestSubsequence.java ├── substringcheckforrotatedstring │ └── RotatedStringSubStringCheck.java ├── test │ └── TestClass.java ├── uniquecharscheck │ └── CheckUniqueCharacters.java └── wordcountinlargefile │ └── WordOccurencesInLargeFile.java ├── threads ├── blockingqueue │ └── BlockingQueue.java ├── main │ └── ThreadExample.java └── simulatedeadlock │ └── DeadLockOreilly.java └── trees ├── checkbalancedtree └── CheckBalancedTree.java ├── checksubtree └── CheckSubtree.java ├── commonancestorbinarytree └── CommonAncestorBinaryTree.java ├── diameteroftree └── DiameterOfTree.java ├── findallpathsequaltosum └── FindAllPathsEqualToSum.java ├── findsumofallnodesexceptleaf └── FindSumOfAllNodesExceptLeaf.java ├── isbst └── CheckIfTreeIsBst.java ├── leastcommonancestorbst └── FindLeastCommonAncestorBST.java ├── leftviewofatree └── LeftViewOfATree.java ├── mirrorgiventree └── MirrorGivenTree.java ├── mirrortree └── MirrorTree.java ├── model ├── AbstractNode.java ├── BinarySearchTree.java ├── BinarySearchTreeImpl.java ├── GenericNode.java ├── SearchNode.java └── TraverseType.java ├── printnarytreewithlevels └── PrintNaryTreeWithLevels.java ├── sortedarraytobalancedtree └── SortedArrayToBalancedTree.java └── test ├── TestBalancedTree.java ├── TestBinarySearchTree.java ├── TestFindSumExceptLeafNodes.java ├── TestMirror.java └── TestSubtree.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/.gitignore -------------------------------------------------------------------------------- /Java Spring Hibernate General.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/Java Spring Hibernate General.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/README.md -------------------------------------------------------------------------------- /src/arrays/allevennumberstoleft/AllEvensToLeftandOddsToRight.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/allevennumberstoleft/AllEvensToLeftandOddsToRight.java -------------------------------------------------------------------------------- /src/arrays/allpathsinamatrix/AllPathsInAMatrix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/allpathsinamatrix/AllPathsInAMatrix.java -------------------------------------------------------------------------------- /src/arrays/ascsubsequencemaxproduct/SubsequenceProduct.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/ascsubsequencemaxproduct/SubsequenceProduct.java -------------------------------------------------------------------------------- /src/arrays/ascsubsequencemaxproduct/Test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/ascsubsequencemaxproduct/Test.java -------------------------------------------------------------------------------- /src/arrays/circularshiftintarray/CircularShiftArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/circularshiftintarray/CircularShiftArray.java -------------------------------------------------------------------------------- /src/arrays/circularshiftintarray/Test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/circularshiftintarray/Test.java -------------------------------------------------------------------------------- /src/arrays/fillmatrixwithones/FillBinaryMatrixWithOnes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/fillmatrixwithones/FillBinaryMatrixWithOnes.java -------------------------------------------------------------------------------- /src/arrays/findarray/FindArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/findarray/FindArray.java -------------------------------------------------------------------------------- /src/arrays/findarray/FindArrayImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/findarray/FindArrayImpl.java -------------------------------------------------------------------------------- /src/arrays/findduplicatecountsortedarray/DuplicatesCountInSortedArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/findduplicatecountsortedarray/DuplicatesCountInSortedArray.java -------------------------------------------------------------------------------- /src/arrays/findpairsequaltosum/FindPairsEqualToSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/findpairsequaltosum/FindPairsEqualToSum.java -------------------------------------------------------------------------------- /src/arrays/indexequaltonumbersortedarray/IndexEqualToNumberSortedArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/indexequaltonumbersortedarray/IndexEqualToNumberSortedArray.java -------------------------------------------------------------------------------- /src/arrays/maxsubarray/FindMaxSubArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/maxsubarray/FindMaxSubArray.java -------------------------------------------------------------------------------- /src/arrays/maxsubarray/TestMax.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/maxsubarray/TestMax.java -------------------------------------------------------------------------------- /src/arrays/mindiffsortedarrays/MinimumDifferenceSortedArrays.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/mindiffsortedarrays/MinimumDifferenceSortedArrays.java -------------------------------------------------------------------------------- /src/arrays/numberfrequency/PrintNumbersWithFrequency.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/numberfrequency/PrintNumbersWithFrequency.java -------------------------------------------------------------------------------- /src/arrays/numberwithhighestfreq/FindNumberWithHighestFreq.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/numberwithhighestfreq/FindNumberWithHighestFreq.java -------------------------------------------------------------------------------- /src/arrays/randomizearray/RandomizeArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/randomizearray/RandomizeArray.java -------------------------------------------------------------------------------- /src/arrays/searchrotatedsortedarray/SearchInRotatedSortedArray.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/searchrotatedsortedarray/SearchInRotatedSortedArray.java -------------------------------------------------------------------------------- /src/arrays/test/TestFindPairsEqualToSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/test/TestFindPairsEqualToSum.java -------------------------------------------------------------------------------- /src/arrays/test/TestMoveAllEvensToLeft.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/test/TestMoveAllEvensToLeft.java -------------------------------------------------------------------------------- /src/arrays/test/TestPrintNumbersWithFrequency.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/arrays/test/TestPrintNumbersWithFrequency.java -------------------------------------------------------------------------------- /src/collections/cartesianproblem/CartesianOfLists.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/cartesianproblem/CartesianOfLists.java -------------------------------------------------------------------------------- /src/collections/commonelementsortedsets/FindCommonElementsInSortedSetsOrLists.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/commonelementsortedsets/FindCommonElementsInSortedSetsOrLists.java -------------------------------------------------------------------------------- /src/collections/customlinkedlist/Link.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/customlinkedlist/Link.java -------------------------------------------------------------------------------- /src/collections/customlinkedlist/LinkedList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/customlinkedlist/LinkedList.java -------------------------------------------------------------------------------- /src/collections/customlinkedlist/LinkedListImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/customlinkedlist/LinkedListImpl.java -------------------------------------------------------------------------------- /src/collections/detectlinkedlistloop/DetectLinkedListLoop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/detectlinkedlistloop/DetectLinkedListLoop.java -------------------------------------------------------------------------------- /src/collections/findNTHlastelement/FindNthLastElement.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/findNTHlastelement/FindNthLastElement.java -------------------------------------------------------------------------------- /src/collections/loopstartlinkedlist/FindStartPointOfLoop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/loopstartlinkedlist/FindStartPointOfLoop.java -------------------------------------------------------------------------------- /src/collections/nestedliststring/NestedList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/nestedliststring/NestedList.java -------------------------------------------------------------------------------- /src/collections/nestedlistsum/NestedListSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/nestedlistsum/NestedListSum.java -------------------------------------------------------------------------------- /src/collections/removeduplicatesfromlinkedlist/RemoveDuplicatesFromLinkedList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/removeduplicatesfromlinkedlist/RemoveDuplicatesFromLinkedList.java -------------------------------------------------------------------------------- /src/collections/reverselinkedlist/ReverseLinkedList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/reverselinkedlist/ReverseLinkedList.java -------------------------------------------------------------------------------- /src/collections/test/TestCartesianOfLists.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/test/TestCartesianOfLists.java -------------------------------------------------------------------------------- /src/collections/test/TestNestedList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/test/TestNestedList.java -------------------------------------------------------------------------------- /src/collections/test/TestNestedListSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/test/TestNestedListSum.java -------------------------------------------------------------------------------- /src/collections/test/TestNthElementInLinkList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/collections/test/TestNthElementInLinkList.java -------------------------------------------------------------------------------- /src/customiterator/Animal.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/customiterator/Animal.java -------------------------------------------------------------------------------- /src/customiterator/AnimalIterator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/customiterator/AnimalIterator.java -------------------------------------------------------------------------------- /src/customiterator/TestIterator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/customiterator/TestIterator.java -------------------------------------------------------------------------------- /src/graphs/breadthfirstsearch/BFS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/breadthfirstsearch/BFS.java -------------------------------------------------------------------------------- /src/graphs/depthfirstsearch/DFS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/depthfirstsearch/DFS.java -------------------------------------------------------------------------------- /src/graphs/filedependencyresolution/FileDependency.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/filedependencyresolution/FileDependency.java -------------------------------------------------------------------------------- /src/graphs/filedependencyresolution/FileDependencyImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/filedependencyresolution/FileDependencyImpl.java -------------------------------------------------------------------------------- /src/graphs/filedependencyresolution/FileOptions.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/filedependencyresolution/FileOptions.java -------------------------------------------------------------------------------- /src/graphs/filedependencyresolution/client/FileDependencyClient.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/filedependencyresolution/client/FileDependencyClient.java -------------------------------------------------------------------------------- /src/graphs/graph/AbstractGraph.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/graph/AbstractGraph.java -------------------------------------------------------------------------------- /src/graphs/graph/DirectedGraph.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/graph/DirectedGraph.java -------------------------------------------------------------------------------- /src/graphs/graph/Graph.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/graph/Graph.java -------------------------------------------------------------------------------- /src/graphs/graph/UnDirectedGraph.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/graph/UnDirectedGraph.java -------------------------------------------------------------------------------- /src/graphs/graph/Vertex.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/graph/Vertex.java -------------------------------------------------------------------------------- /src/graphs/test/TestDG.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/graphs/test/TestDG.java -------------------------------------------------------------------------------- /src/heaps/heap/AbstractHeap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/heaps/heap/AbstractHeap.java -------------------------------------------------------------------------------- /src/heaps/heap/Heap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/heaps/heap/Heap.java -------------------------------------------------------------------------------- /src/heaps/heap/MaxHeap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/heaps/heap/MaxHeap.java -------------------------------------------------------------------------------- /src/heaps/heap/MinHeap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/heaps/heap/MinHeap.java -------------------------------------------------------------------------------- /src/heaps/heap/model/Node.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/heaps/heap/model/Node.java -------------------------------------------------------------------------------- /src/heaps/test/TestMaxHeap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/heaps/test/TestMaxHeap.java -------------------------------------------------------------------------------- /src/maps/customhashmap/CustomHashMap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/maps/customhashmap/CustomHashMap.java -------------------------------------------------------------------------------- /src/maps/customhashmap/CustomHashMapImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/maps/customhashmap/CustomHashMapImpl.java -------------------------------------------------------------------------------- /src/maps/lrucache/LRUCache.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/maps/lrucache/LRUCache.java -------------------------------------------------------------------------------- /src/maps/sortofvaluesinmap/SortOnValuesInMap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/maps/sortofvaluesinmap/SortOnValuesInMap.java -------------------------------------------------------------------------------- /src/maps/test/TestCustomMap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/maps/test/TestCustomMap.java -------------------------------------------------------------------------------- /src/maps/test/TestLRUCache.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/maps/test/TestLRUCache.java -------------------------------------------------------------------------------- /src/numberproblems/concatenatenumbers/ConcatenateNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/concatenatenumbers/ConcatenateNumbers.java -------------------------------------------------------------------------------- /src/numberproblems/convertstringtonumber/ConvertStringToNum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/convertstringtonumber/ConvertStringToNum.java -------------------------------------------------------------------------------- /src/numberproblems/exponentialnumber/ExponentialOfNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/exponentialnumber/ExponentialOfNumber.java -------------------------------------------------------------------------------- /src/numberproblems/factorial/Factorial.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/factorial/Factorial.java -------------------------------------------------------------------------------- /src/numberproblems/factorial/FactorialNoOfTrailingZeroes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/factorial/FactorialNoOfTrailingZeroes.java -------------------------------------------------------------------------------- /src/numberproblems/findmissingnumber/FindMissingNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/findmissingnumber/FindMissingNumber.java -------------------------------------------------------------------------------- /src/numberproblems/oddoreven/OddOrEven.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/oddoreven/OddOrEven.java -------------------------------------------------------------------------------- /src/numberproblems/printprimefactors/PrintPrimeFactorsOfANumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/printprimefactors/PrintPrimeFactorsOfANumber.java -------------------------------------------------------------------------------- /src/numberproblems/productofdigitsequaltonumber/ProductOfDigitsEqualToNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/productofdigitsequaltonumber/ProductOfDigitsEqualToNumber.java -------------------------------------------------------------------------------- /src/numberproblems/swapnumbers/SwapNumbers.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/swapnumbers/SwapNumbers.java -------------------------------------------------------------------------------- /src/numberproblems/test/TestConvert.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/test/TestConvert.java -------------------------------------------------------------------------------- /src/numberproblems/test/TestFindMissingNumber.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/test/TestFindMissingNumber.java -------------------------------------------------------------------------------- /src/numberproblems/test/TestSwap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/numberproblems/test/TestSwap.java -------------------------------------------------------------------------------- /src/objects/cloning/linkedlistclone/LinkedListCloning.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/objects/cloning/linkedlistclone/LinkedListCloning.java -------------------------------------------------------------------------------- /src/objects/immutableclass/ImmutableClass.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/objects/immutableclass/ImmutableClass.java -------------------------------------------------------------------------------- /src/objects/immutableclass/TestImmutability.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/objects/immutableclass/TestImmutability.java -------------------------------------------------------------------------------- /src/objects/passbyvalue/Dog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/objects/passbyvalue/Dog.java -------------------------------------------------------------------------------- /src/objects/passbyvalue/PassByValue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/objects/passbyvalue/PassByValue.java -------------------------------------------------------------------------------- /src/objects/singleton/SingletonUsingDoubleCheckLocking.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/objects/singleton/SingletonUsingDoubleCheckLocking.java -------------------------------------------------------------------------------- /src/objects/singleton/SingletonUsingStatic.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/objects/singleton/SingletonUsingStatic.java -------------------------------------------------------------------------------- /src/sorting/algorithms/BubbleSort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/sorting/algorithms/BubbleSort.java -------------------------------------------------------------------------------- /src/sorting/algorithms/InsertionSort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/sorting/algorithms/InsertionSort.java -------------------------------------------------------------------------------- /src/sorting/algorithms/MergeSort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/sorting/algorithms/MergeSort.java -------------------------------------------------------------------------------- /src/sorting/algorithms/QuickSort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/sorting/algorithms/QuickSort.java -------------------------------------------------------------------------------- /src/sorting/algorithms/SelectionSort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/sorting/algorithms/SelectionSort.java -------------------------------------------------------------------------------- /src/sorting/algorithms/ShellSort.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/sorting/algorithms/ShellSort.java -------------------------------------------------------------------------------- /src/sorting/test/TestSorting.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/sorting/test/TestSorting.java -------------------------------------------------------------------------------- /src/stackqueues/customstackwithpushpopgetmin/CustomStack.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/stackqueues/customstackwithpushpopgetmin/CustomStack.java -------------------------------------------------------------------------------- /src/stackqueues/customstackwithpushpopgetmin/CustomStackImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/stackqueues/customstackwithpushpopgetmin/CustomStackImpl.java -------------------------------------------------------------------------------- /src/stackqueues/customstackwithpushpopgetmin/TestCustomStack.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/stackqueues/customstackwithpushpopgetmin/TestCustomStack.java -------------------------------------------------------------------------------- /src/stackqueues/parenthesismatching/ParenthesisMatching.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/stackqueues/parenthesismatching/ParenthesisMatching.java -------------------------------------------------------------------------------- /src/stackqueues/queueusingstack/QueueUsingStack.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/stackqueues/queueusingstack/QueueUsingStack.java -------------------------------------------------------------------------------- /src/stackqueues/stacksorting/StackSorting.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/stackqueues/stacksorting/StackSorting.java -------------------------------------------------------------------------------- /src/strings/checkpalindrome/CheckPalindrome.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/checkpalindrome/CheckPalindrome.java -------------------------------------------------------------------------------- /src/strings/distancebetweenwords/DistanceBetweenWords.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/distancebetweenwords/DistanceBetweenWords.java -------------------------------------------------------------------------------- /src/strings/findcommonprefix/CommonPrefix.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findcommonprefix/CommonPrefix.java -------------------------------------------------------------------------------- /src/strings/findduplicates/FindDuplicates.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findduplicates/FindDuplicates.java -------------------------------------------------------------------------------- /src/strings/findlatestversion/FindLatestVersion.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findlatestversion/FindLatestVersion.java -------------------------------------------------------------------------------- /src/strings/findlatestversion/TestFindLatestVersion.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findlatestversion/TestFindLatestVersion.java -------------------------------------------------------------------------------- /src/strings/findlongestcommonsubsequence/LCS.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findlongestcommonsubsequence/LCS.java -------------------------------------------------------------------------------- /src/strings/findlongestpalindrome/FindLongestPalindrome.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findlongestpalindrome/FindLongestPalindrome.java -------------------------------------------------------------------------------- /src/strings/findlongestpalindrome/Test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findlongestpalindrome/Test.java -------------------------------------------------------------------------------- /src/strings/findpermutations/FindPermutations.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findpermutations/FindPermutations.java -------------------------------------------------------------------------------- /src/strings/findpermutations/TestPermutations.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findpermutations/TestPermutations.java -------------------------------------------------------------------------------- /src/strings/findtotalpalindromes/FindTotalNoOfPalindromes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findtotalpalindromes/FindTotalNoOfPalindromes.java -------------------------------------------------------------------------------- /src/strings/findtotalpalindromes/Test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/findtotalpalindromes/Test.java -------------------------------------------------------------------------------- /src/strings/firstnonrepeatedchar/FirstNonRepeatedChar.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/firstnonrepeatedchar/FirstNonRepeatedChar.java -------------------------------------------------------------------------------- /src/strings/firstnonrepeatedchar/Test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/firstnonrepeatedchar/Test.java -------------------------------------------------------------------------------- /src/strings/isomorphicstrings/Isomorphic.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/isomorphicstrings/Isomorphic.java -------------------------------------------------------------------------------- /src/strings/longestsubstringnorepeatedchar/LongestSubstringUnrepeatedChar.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/longestsubstringnorepeatedchar/LongestSubstringUnrepeatedChar.java -------------------------------------------------------------------------------- /src/strings/minimumsubstringcontains/MinimumSubstring.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/minimumsubstringcontains/MinimumSubstring.java -------------------------------------------------------------------------------- /src/strings/printdiamonds/PrintDiamonds.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/printdiamonds/PrintDiamonds.java -------------------------------------------------------------------------------- /src/strings/printdiamonds/TestDiamonds.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/printdiamonds/TestDiamonds.java -------------------------------------------------------------------------------- /src/strings/repeatingstringsofspecifiedlength/RepeatingStringOfSpecificLength.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/repeatingstringsofspecifiedlength/RepeatingStringOfSpecificLength.java -------------------------------------------------------------------------------- /src/strings/reversestring/ReverseString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/reversestring/ReverseString.java -------------------------------------------------------------------------------- /src/strings/reversestring/Test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/reversestring/Test.java -------------------------------------------------------------------------------- /src/strings/segmentstringfindalldictwords/StringSegmentation.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/segmentstringfindalldictwords/StringSegmentation.java -------------------------------------------------------------------------------- /src/strings/stringsubsequencecheck/CheckStringSubsequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/stringsubsequencecheck/CheckStringSubsequence.java -------------------------------------------------------------------------------- /src/strings/stringsubsequencecheck/TestSubsequence.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/stringsubsequencecheck/TestSubsequence.java -------------------------------------------------------------------------------- /src/strings/substringcheckforrotatedstring/RotatedStringSubStringCheck.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/substringcheckforrotatedstring/RotatedStringSubStringCheck.java -------------------------------------------------------------------------------- /src/strings/test/TestClass.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/test/TestClass.java -------------------------------------------------------------------------------- /src/strings/uniquecharscheck/CheckUniqueCharacters.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/uniquecharscheck/CheckUniqueCharacters.java -------------------------------------------------------------------------------- /src/strings/wordcountinlargefile/WordOccurencesInLargeFile.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/strings/wordcountinlargefile/WordOccurencesInLargeFile.java -------------------------------------------------------------------------------- /src/threads/blockingqueue/BlockingQueue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/threads/blockingqueue/BlockingQueue.java -------------------------------------------------------------------------------- /src/threads/main/ThreadExample.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/threads/main/ThreadExample.java -------------------------------------------------------------------------------- /src/threads/simulatedeadlock/DeadLockOreilly.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/threads/simulatedeadlock/DeadLockOreilly.java -------------------------------------------------------------------------------- /src/trees/checkbalancedtree/CheckBalancedTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/checkbalancedtree/CheckBalancedTree.java -------------------------------------------------------------------------------- /src/trees/checksubtree/CheckSubtree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/checksubtree/CheckSubtree.java -------------------------------------------------------------------------------- /src/trees/commonancestorbinarytree/CommonAncestorBinaryTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/commonancestorbinarytree/CommonAncestorBinaryTree.java -------------------------------------------------------------------------------- /src/trees/diameteroftree/DiameterOfTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/diameteroftree/DiameterOfTree.java -------------------------------------------------------------------------------- /src/trees/findallpathsequaltosum/FindAllPathsEqualToSum.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/findallpathsequaltosum/FindAllPathsEqualToSum.java -------------------------------------------------------------------------------- /src/trees/findsumofallnodesexceptleaf/FindSumOfAllNodesExceptLeaf.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/findsumofallnodesexceptleaf/FindSumOfAllNodesExceptLeaf.java -------------------------------------------------------------------------------- /src/trees/isbst/CheckIfTreeIsBst.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/isbst/CheckIfTreeIsBst.java -------------------------------------------------------------------------------- /src/trees/leastcommonancestorbst/FindLeastCommonAncestorBST.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/leastcommonancestorbst/FindLeastCommonAncestorBST.java -------------------------------------------------------------------------------- /src/trees/leftviewofatree/LeftViewOfATree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/leftviewofatree/LeftViewOfATree.java -------------------------------------------------------------------------------- /src/trees/mirrorgiventree/MirrorGivenTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/mirrorgiventree/MirrorGivenTree.java -------------------------------------------------------------------------------- /src/trees/mirrortree/MirrorTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/mirrortree/MirrorTree.java -------------------------------------------------------------------------------- /src/trees/model/AbstractNode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/model/AbstractNode.java -------------------------------------------------------------------------------- /src/trees/model/BinarySearchTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/model/BinarySearchTree.java -------------------------------------------------------------------------------- /src/trees/model/BinarySearchTreeImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/model/BinarySearchTreeImpl.java -------------------------------------------------------------------------------- /src/trees/model/GenericNode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/model/GenericNode.java -------------------------------------------------------------------------------- /src/trees/model/SearchNode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/model/SearchNode.java -------------------------------------------------------------------------------- /src/trees/model/TraverseType.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/model/TraverseType.java -------------------------------------------------------------------------------- /src/trees/printnarytreewithlevels/PrintNaryTreeWithLevels.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/printnarytreewithlevels/PrintNaryTreeWithLevels.java -------------------------------------------------------------------------------- /src/trees/sortedarraytobalancedtree/SortedArrayToBalancedTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/sortedarraytobalancedtree/SortedArrayToBalancedTree.java -------------------------------------------------------------------------------- /src/trees/test/TestBalancedTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/test/TestBalancedTree.java -------------------------------------------------------------------------------- /src/trees/test/TestBinarySearchTree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/test/TestBinarySearchTree.java -------------------------------------------------------------------------------- /src/trees/test/TestFindSumExceptLeafNodes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/test/TestFindSumExceptLeafNodes.java -------------------------------------------------------------------------------- /src/trees/test/TestMirror.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/test/TestMirror.java -------------------------------------------------------------------------------- /src/trees/test/TestSubtree.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/android10/interviewproblems/HEAD/src/trees/test/TestSubtree.java --------------------------------------------------------------------------------