├── .gitignore ├── C++ ├── #deleteDuplicatesii.cpp# ├── 3sum.cpp ├── addTwoNumber.cpp ├── arrange.cpp ├── atoi.cpp ├── binarySearch.cpp ├── braces.cpp ├── compareNum.cpp ├── convert.cpp ├── convertToTitle.cpp ├── coverPoints.cpp ├── deleteDuplicatesi.cpp ├── deleteDuplicatesii.cpp ├── detectCycle.cpp ├── diagonal.cpp ├── duplicate.cpp ├── evalRPN.cpp ├── findCount.cpp ├── findMin.cpp ├── gcd.cpp ├── generateMatrix.cpp ├── generatePascal.cpp ├── getIntersectionNode.cpp ├── intersect.cpp ├── isPalindrome.cpp ├── isPower.cpp ├── largestNum.cpp ├── lengthofLastWord.cpp ├── listPalindrome.cpp ├── longestCommonPrefix.cpp ├── longestPalindrome.cpp ├── maxArea.cpp ├── maxSet.cpp ├── maxSubArray.cpp ├── mergeIntervals.cpp ├── mergeTwoLists.cpp ├── minStack.cpp ├── numSetBits.cpp ├── partition.cpp ├── pow.cpp ├── prevSmaller.cpp ├── primeSum.cpp ├── removeNthFromEnd.cpp ├── reorderList.cpp ├── repeatedNum.cpp ├── reverse.cpp ├── reverseBetween.cpp ├── roman2int.cpp ├── rotate.cpp ├── rotateRight.cpp ├── rotatedsearch.cpp ├── searchInsert.cpp ├── searchMatrix.cpp ├── setMatrixZeros.cpp ├── singleNumberi.cpp ├── singleNumberii.cpp ├── sqrt.cpp ├── substr.cpp ├── swapColor.cpp ├── titleToNumber.cpp ├── trailingZeros.cpp ├── uniquePaths.cpp └── wave.cpp ├── LICENSE ├── Python ├── __init__.py ├── addTwoNumbers.py ├── addone.py ├── arrange.py ├── convertToTitle.py ├── detectCycle.py ├── flip.py ├── gcd.py ├── generateMatrix.py ├── generatePascal.py ├── getRow.py ├── isPalindrome.py ├── isPower.py ├── maxSet.py ├── nextPermutation.py ├── partition.py ├── primeSum.py ├── reorderList.py ├── reverse.py ├── titleToNumber.py ├── trailingZeros.py └── uniquePaths.py ├── README.md ├── README.org ├── img └── ib-logo-square.png ├── repeatedNumber.py └── timeComplexity.md /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | /Python/__init__.py -------------------------------------------------------------------------------- /C++/#deleteDuplicatesii.cpp#: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/#deleteDuplicatesii.cpp# -------------------------------------------------------------------------------- /C++/3sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/3sum.cpp -------------------------------------------------------------------------------- /C++/addTwoNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/addTwoNumber.cpp -------------------------------------------------------------------------------- /C++/arrange.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/arrange.cpp -------------------------------------------------------------------------------- /C++/atoi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/atoi.cpp -------------------------------------------------------------------------------- /C++/binarySearch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/binarySearch.cpp -------------------------------------------------------------------------------- /C++/braces.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/braces.cpp -------------------------------------------------------------------------------- /C++/compareNum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/compareNum.cpp -------------------------------------------------------------------------------- /C++/convert.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/convert.cpp -------------------------------------------------------------------------------- /C++/convertToTitle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/convertToTitle.cpp -------------------------------------------------------------------------------- /C++/coverPoints.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/coverPoints.cpp -------------------------------------------------------------------------------- /C++/deleteDuplicatesi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/deleteDuplicatesi.cpp -------------------------------------------------------------------------------- /C++/deleteDuplicatesii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/deleteDuplicatesii.cpp -------------------------------------------------------------------------------- /C++/detectCycle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/detectCycle.cpp -------------------------------------------------------------------------------- /C++/diagonal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/diagonal.cpp -------------------------------------------------------------------------------- /C++/duplicate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/duplicate.cpp -------------------------------------------------------------------------------- /C++/evalRPN.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/evalRPN.cpp -------------------------------------------------------------------------------- /C++/findCount.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/findCount.cpp -------------------------------------------------------------------------------- /C++/findMin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/findMin.cpp -------------------------------------------------------------------------------- /C++/gcd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/gcd.cpp -------------------------------------------------------------------------------- /C++/generateMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/generateMatrix.cpp -------------------------------------------------------------------------------- /C++/generatePascal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/generatePascal.cpp -------------------------------------------------------------------------------- /C++/getIntersectionNode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/getIntersectionNode.cpp -------------------------------------------------------------------------------- /C++/intersect.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/intersect.cpp -------------------------------------------------------------------------------- /C++/isPalindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/isPalindrome.cpp -------------------------------------------------------------------------------- /C++/isPower.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/isPower.cpp -------------------------------------------------------------------------------- /C++/largestNum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/largestNum.cpp -------------------------------------------------------------------------------- /C++/lengthofLastWord.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/lengthofLastWord.cpp -------------------------------------------------------------------------------- /C++/listPalindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/listPalindrome.cpp -------------------------------------------------------------------------------- /C++/longestCommonPrefix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/longestCommonPrefix.cpp -------------------------------------------------------------------------------- /C++/longestPalindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/longestPalindrome.cpp -------------------------------------------------------------------------------- /C++/maxArea.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/maxArea.cpp -------------------------------------------------------------------------------- /C++/maxSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/maxSet.cpp -------------------------------------------------------------------------------- /C++/maxSubArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/maxSubArray.cpp -------------------------------------------------------------------------------- /C++/mergeIntervals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/mergeIntervals.cpp -------------------------------------------------------------------------------- /C++/mergeTwoLists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/mergeTwoLists.cpp -------------------------------------------------------------------------------- /C++/minStack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/minStack.cpp -------------------------------------------------------------------------------- /C++/numSetBits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/numSetBits.cpp -------------------------------------------------------------------------------- /C++/partition.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/partition.cpp -------------------------------------------------------------------------------- /C++/pow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/pow.cpp -------------------------------------------------------------------------------- /C++/prevSmaller.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/prevSmaller.cpp -------------------------------------------------------------------------------- /C++/primeSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/primeSum.cpp -------------------------------------------------------------------------------- /C++/removeNthFromEnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/removeNthFromEnd.cpp -------------------------------------------------------------------------------- /C++/reorderList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/reorderList.cpp -------------------------------------------------------------------------------- /C++/repeatedNum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/repeatedNum.cpp -------------------------------------------------------------------------------- /C++/reverse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/reverse.cpp -------------------------------------------------------------------------------- /C++/reverseBetween.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/reverseBetween.cpp -------------------------------------------------------------------------------- /C++/roman2int.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/roman2int.cpp -------------------------------------------------------------------------------- /C++/rotate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/rotate.cpp -------------------------------------------------------------------------------- /C++/rotateRight.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/rotateRight.cpp -------------------------------------------------------------------------------- /C++/rotatedsearch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/rotatedsearch.cpp -------------------------------------------------------------------------------- /C++/searchInsert.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/searchInsert.cpp -------------------------------------------------------------------------------- /C++/searchMatrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/searchMatrix.cpp -------------------------------------------------------------------------------- /C++/setMatrixZeros.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/setMatrixZeros.cpp -------------------------------------------------------------------------------- /C++/singleNumberi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/singleNumberi.cpp -------------------------------------------------------------------------------- /C++/singleNumberii.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/singleNumberii.cpp -------------------------------------------------------------------------------- /C++/sqrt.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/sqrt.cpp -------------------------------------------------------------------------------- /C++/substr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/substr.cpp -------------------------------------------------------------------------------- /C++/swapColor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/swapColor.cpp -------------------------------------------------------------------------------- /C++/titleToNumber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/titleToNumber.cpp -------------------------------------------------------------------------------- /C++/trailingZeros.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/trailingZeros.cpp -------------------------------------------------------------------------------- /C++/uniquePaths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/uniquePaths.cpp -------------------------------------------------------------------------------- /C++/wave.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/C++/wave.cpp -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/LICENSE -------------------------------------------------------------------------------- /Python/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Python/addTwoNumbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/addTwoNumbers.py -------------------------------------------------------------------------------- /Python/addone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/addone.py -------------------------------------------------------------------------------- /Python/arrange.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/arrange.py -------------------------------------------------------------------------------- /Python/convertToTitle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/convertToTitle.py -------------------------------------------------------------------------------- /Python/detectCycle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/detectCycle.py -------------------------------------------------------------------------------- /Python/flip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/flip.py -------------------------------------------------------------------------------- /Python/gcd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/gcd.py -------------------------------------------------------------------------------- /Python/generateMatrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/generateMatrix.py -------------------------------------------------------------------------------- /Python/generatePascal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/generatePascal.py -------------------------------------------------------------------------------- /Python/getRow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/getRow.py -------------------------------------------------------------------------------- /Python/isPalindrome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/isPalindrome.py -------------------------------------------------------------------------------- /Python/isPower.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/isPower.py -------------------------------------------------------------------------------- /Python/maxSet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/maxSet.py -------------------------------------------------------------------------------- /Python/nextPermutation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/nextPermutation.py -------------------------------------------------------------------------------- /Python/partition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/partition.py -------------------------------------------------------------------------------- /Python/primeSum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/primeSum.py -------------------------------------------------------------------------------- /Python/reorderList.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/reorderList.py -------------------------------------------------------------------------------- /Python/reverse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/reverse.py -------------------------------------------------------------------------------- /Python/titleToNumber.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/titleToNumber.py -------------------------------------------------------------------------------- /Python/trailingZeros.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/trailingZeros.py -------------------------------------------------------------------------------- /Python/uniquePaths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/Python/uniquePaths.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/README.md -------------------------------------------------------------------------------- /README.org: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/README.org -------------------------------------------------------------------------------- /img/ib-logo-square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/img/ib-logo-square.png -------------------------------------------------------------------------------- /repeatedNumber.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/repeatedNumber.py -------------------------------------------------------------------------------- /timeComplexity.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alex-Keyes/InterviewBit/HEAD/timeComplexity.md --------------------------------------------------------------------------------