LeetCode problems solved with TypeScript. Tests done with Jest.
- 1. Two Sum
- 2. Add Two Numbers
- 3. Longest Substring Without Repeating Characters
- 5. Longest Palindromic Substring
- 6. Zigzag Conversion
- 7. Reverse Integer
- 9. Palindrome Number
- 11. Container With Most Water
- 13. Roman to Integer
- 14. Longest Common Prefix
- 15. 3Sum
- 16. 3Sum Closest
- 18. 4Sum
- 20. Valid Parentheses
- 21. Merge Two Sorted Lists
- 26. Remove Duplicates from Sorted Array
- 28. Find the Index of the First Occurrence in a String
- 27. Remove Element
- 32. Longest Valid Parentheses
- 35. Search Insert Position
- 39. Combination Sum
- 40. Combination Sum
- 42. Trapping Rain Water
- 51. N-Queens
- 52. N-Queens II
- 56. Merge Intervals
- 57. Insert Interval
- 58. Length of Last Word
- 66. Plus One
- 67. Add Binary
- 69. Sqrt(x)
- 70. Climbing Stairs
- 88. Merge Sorted Array
- 118. Pascal's Triangle
- 119. Pascal's Triangle II
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 125. Valid Palindrome
- 136. Single Number
- 200. Number of Islands
- 205. Isomorphic Strings
- 217. Contains Duplicate
- 231. Power of Two
- 242. Valid Anagram
- 258. Add Digits
- 263. Ugly Number
- 268. Missing Number
- 278. First Bad Version
- 283. Move Zeroes
- 290. Word Pattern
- 292. Nim Game
- 326. Power of Three
- 338. Counting Bits
- 342. Power of Four
- 343. Integer Break
- 344. Reverse String
- 345. Reverse Vowels of a String
- 347. Top K Frequent Elements
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 367. Valid Perfect Square
- 374. Guess Number Higher or Lower
- 383. Ransom Note
- 384. Shuffle an Array
- 389. Find the Difference
- 392. Is Subsequence
- 405. Convert a Number to Hexadecimal
- 409. Longest Palindrome
- 412. Fizz Buzz
- 414. Third Maximum Number
- 415. Add Strings
- 434. Number of Segments in a String
- 441. Arranging Coins
- 448. Find All Numbers Disappeared in an Array
- 455. Assign Cookies
- 459. Repeated Substring Pattern
- 461. Hamming Distance
- 463. Island Perimeter
- 476. Number Complement
- 482. License Key Formatting
- 485. Max Consecutive Ones
- 492. Construct the Rectangle
- 495. Teemo Attacking
- 496. Next Greater Element I
- 500. Keyboard Row
- 504. Base 7
- 506. Relative Ranks
- 507. Perfect Number
- 509. Fibonacci Number
- 554. Brick Wall
- 605. Can Place Flowers
- 643. Maximum Average Subarray I
- 859. Buddy Strings
- 868. Binary Gap
- 917. Reverse Only Letters
- 941. Valid Mountain Array
- 977. Squares of a Sorted Array
- 1046. Last Stone Weight
- 1089. Duplicate Zeros
- 1295. Find Numbers with Even Number of Digits
- 1346. Check If N and Its Double Exist
- 2618. Check if Object Instance of Class
- 2619. Array Prototype Last
- 2620. Counter
- 2621. Sleep
- 2622. Cache With Time Limit
- 2623. Memoize
- 2624. Snail Traversal
- 2625. Flatten Deeply Nested Array
- 2626. Array Reduce Transformation
- 2627. Debounce
- 2628. JSON Deep Equal
- 2629. Function Composition
- 2630. Memoize II
- 2631. Group By
- 2632. Curry
- 2633. Convert Object to JSON String
- 2634. Filter Elements from Array
- 2635. Apply Transform Over Each Element in Array
- 2636. Promise Pool
- 2637. Promise Time Limit
- 2648. Generate Fibonacci Sequence
- 2649. Nested Array Generator
- 2650. Design Cancellable Function
- 2665. Counter II
- 2666. Allow One Function Call
- 2667. Create Hello World Function
- 2675. Array of Objects to Matrix
- 2676. Throttle
- 2677. Chunk Array
- 2695. Array Wrapper
- 2703. Return Length of Arguments Passed
- 2704. To Be Or Not To Be
- 2705. Compact Object
- 2715. Execute Cancellable Function With Delay
- 2721. Execute Asynchronous Functions in Parallel
- 2722. Join Two Arrays by ID
- 2723. Add Two Promises
- 2724. Sort By
- 2725. Interval Cancellation
- 2726. Calculator with Method Chaining
- 2727. Is Object Empty
- 2733. Neither Minimum nor Maximum
- 2739. Total Distance Traveled
- 2815. Max Pair Sum in an Array