A collection of solutions to common algorithm questions in both Javascript and Go (sometimes).
Javascript is formatted with ESlint and Standard for sanity, tests are run with Jest.
- arrayQuadrupletSum
- binarySearch
- budgetCuts
- findAllPalindromeSubstrings
- flattenDictionary
- kEmptySlots
- longestIncreasingSubsequence
- longestSubstringWithAtMostKDistinctCharacters (whew)
- matchingBrackets
- maxSlidingWindow
- medianOfTwoSortedArrays
- minNumberOfJumps
- moveZerosToLeft
- pairSum
- palindrome
- plusOne
- powerSet
- rainWater
- repeatedStringMatch
- rotateArray
- searchRotatedArray
- sentenceReverse
- smallestCommonNumber
- smallestDifference
- spiralMatrix
- stringSegmentation
- coinChange
- fibonacci
- levenshteinDistance
- maxProfitWithKTransactions
- palindromePartitioningMinCuts
- rodCutting
- tripleStep
- wordBreak
- deleteNode
- intersectionPointOfTwoLists
- linkedListLoop
- mergeKSortedLists
- nthFromLastNode
- removeDuplicatesFromList
- reverseSinglyLinkedList