This repository contains solutions for Grokking the Coding Interview: Patterns for Coding Question from https://educative.io.
The problems are solved without any external dependency (required data structures and helper functions lay in the utils folder). The project uses jest
and prettier
only to have smooth development.
npm install
npm test
- Cyclic Sort
- Find All Duplicate Numbers
- Find All Missing Numbers
- Find The Corrupt Pair
- Find The Duplicate Number
- Find The Missing Number
- Find The Smallest Missing Positive Number
- Happy Number
- Linked List Cycle
- Middle Of Linked List
- Palindorme Linked List
- Start Of Linked List Cycle
- Conflicting Appointments
- Insert Interval
- Intervals Intersection
- Merge Intervals
- Minimum Meeting Rooms
- Fruits Into Basket
- Longest Subarray With Ones After Replacement
- Longest Substring After Replacement
- Longest Substring With K Distinct Chars
- Max Sum Subarray
- No Repeat Substring
- Permutation In A String
- Smallest Subarray With A Given Sum