My exploration of JavaScript and TypeScript through the corresponding LeetCode problem category.
The problems are partitioned into the following broad topics:
- Closure;
- Basic Array Transforms;
- Function Input and Output;
- Promise;
- Time (setTimeout);
- JSON;
- Utility;
- This;
- Classes;
Topic | Title | Solution | Acceptance | Difficulty |
---|---|---|---|---|
Cosure | Create Hello World Function | 95.1% | ||
Closure | Counter | 89.1% | ||
Closure | Counter II | 91.7% | ||
Basic Array Transforms | Apply Transform Over Each Element in Array | 89.1% | ||
Basic Array Transforms | Filter Elements from Array | 83.0% | ||
Basic Array Transforms | Array Reduce Transformation | 86.1% | ||
Function Input and Output | Function Composition | 89.2% | ||
Function Input and Output | Allow One Function Call | 92.0% | ||
Function Input and Output | Memoize | 62.3% | ||
Function Input and Output | Curry | 88.6% | ||
Promise | Sleep | 88.1% | ||
Promise | Promise Time Limit | 82.4% | ||
Promise | Promise Pool | 81.9% | ||
Time (setTimeout) | Cache With Time Limit | 75.6% | ||
Time (setTimeout) | Debounce | 92.2% | ||
Time (setTimeout) | Throttle | 86.2% | ||
JSON | JSON Deep Equal | 33.3% | ||
JSON | Convert Object to JSON String | 76.8% | ||
JSON | Flatten Deeply Nested Array | 66.5% | ||
Utility | Array of Objects to Matrix | 70.0% | ||
Utility | Differences Between Two Objects | 83.5% | ||
Utility | Chunk Array | 86.8% | ||
This | Array Prototype Last | 80.5% | ||
This | Group By | 86.1% | ||
This | Check if Object Instance of Class | 27.5% | ||
This | Call Function with Custom Context | 86.7% | ||
Classes | Event Emitter | 85.5% | ||
Classes | Array Wrapper | 90.8% |