Skip to content

Latest commit

 

History

History
53 lines (50 loc) · 9.51 KB

typescript.md

File metadata and controls

53 lines (50 loc) · 9.51 KB

LeetCode TypeScript Solutions

A collection of LeetCode problems implemented in TypeScript with detailed complexity analysis and explanations.

Solutions

# Problem Difficulty Pattern Time Space Explanation
84 Largest Rectangle in Histogram Hard Monotonic Stack O(n) O(n) Explanation
150 Evaluate Reverse Polish Notation Medium Stack & Queue O(n) O(n) Explanation
448 Find All Numbers Disappeared in an Array Easy Math & Logic O(n) O(1) Explanation
485 Max Consecutive Ones Easy Math & Logic O(n) O(1) Explanation
636 Exclusive Time of Functions Medium Stack & Queue O(n) O(n) Explanation
645 Set Mismatch Easy Bit Manipulation O(n) O(1) Explanation
739 Daily Temperatures Medium Monotonic Stack O(n) O(n) Explanation
1365 How Many Numbers Are Smaller Than the Current Number Easy Prefix Sum O(n) O(n) Explanation
1441 Build an Array With Stack Operations Medium Stack & Queue O(n) O(n) Explanation
1470 Shuffle the Array Easy Array / General O(n) O(1) Explanation
1475 Final Prices With a Special Discount in a Shop Easy Monotonic Stack O(n) O(n) Explanation
1510 Stone Game IV Hard Dynamic Programming O(n) O(n) Explanation
1929 Concatenation of Array Easy Array / General O(n) O(1) Explanation
2623 Memoize Medium Array / General O(n) O(1) Explanation
2624 Snail Traversal Medium Tree & Graph O(n) O(n) Explanation
2625 Flatten Deeply Nested Array Medium Two Pointers O(n) O(1) Explanation
2626 Array Reduce Transformation Easy Array / General O(n) O(1) Explanation
2627 Debounce Medium Sliding Window O(n) O(1) Explanation
2629 Function Composition Easy Array / General O(n) O(1) Explanation
2630 Memoize II Hard Hash Map O(n) O(n) Explanation
2631 Group By Medium Array / General O(n) O(1) Explanation
2634 Filter Elements from Array Easy Array / General O(n) O(1) Explanation
2635 Apply Transform Over Each Element in Array Easy Hash Map O(n) O(n) Explanation
2637 Promise Time Limit Medium Math & Logic O(n) O(1) Explanation
2648 Generate Fibonacci Sequence Easy Array / General O(n) O(1) Explanation
2649 Nested Array Generator Medium Array / General O(n) O(1) Explanation
2650 Design Cancellable Function Hard Array / General O(n) O(1) Explanation
2665 Counter II Easy Array / General O(n) O(1) Explanation
2666 Allow One Function Call Easy Array / General O(n) O(1) Explanation
2667 Create Hello World Function Easy Tree & Graph O(n) O(n) Explanation
2677 Chunk Array Easy Array / General O(n) O(1) Explanation
2693 Call Function with Custom Context Medium Array / General O(n) O(1) Explanation
2694 Event Emitter Medium Tree & Graph O(n) O(n) Explanation
2695 Array Wrapper Easy Array / General O(n) O(1) Explanation
2703 Return Length of Arguments Passed Easy Hash Map O(n) O(n) Explanation
2704 To Be Or Not To Be Easy Array / General O(n) O(1) Explanation
2705 Compact Object Medium Array / General O(n) O(1) Explanation
2721 Execute Asynchronous Functions in Parallel Medium Two Pointers O(n) O(1) Explanation
2722 Join Two Arrays by ID Medium Hash Map O(n) O(n) Explanation
2723 Add Two Promises Easy Bit Manipulation O(n) O(1) Explanation
2724 Sort By Easy Array / General O(n) O(1) Explanation
2725 Interval Cancellation Easy Heap O(n) O(n) Explanation
2726 Calculator with Method Chaining Easy Hash Map O(n) O(n) Explanation
2727 Is Object Empty Easy Array / General O(n) O(1) Explanation
3348 Smallest Divisible Digit Product II Hard Two Pointers O(n) O(1) Explanation