Skip to content

soumsps/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Leetcode Solutions

Practice problem solving on leetcode

Prerequisites

Node.js/npm
jest

Installation

git clone https://github.com/soumsps/leetcode.git
npm install

How to run the test for solutions?

Example 1: For running test on single Leetcode problem

Run tests for 2020/01_January/LC1_TwoSum

cd into the 2020/01_January/ directory
Then run:

jest --watch LC1_TwoSum

Example 2: For running test on complete month (eg. 01_January, 02_Feburary) of year 2020

Run tests for 2020/01_January

cd into 2020
Then run:
jest --watch 01_January
jest --watch 02_Feburary

2020

January

Sno. Name Level Link
LC1 Two Sum Easy https://leetcode.com/problems/two-sum/
LC4 Median Two Sorted Array Hard https://leetcode.com/problems/median-of-two-sorted-arrays
LC1313 Decompresed RLE List Easy https://leetcode.com/problems/decompress-run-length-encoded-list/
LC16 3Sum Closest Medium https://leetcode.com/problems/3sum-closest/
LC18 4Sum Medium https://leetcode.com/problems/4sum/
LC217 Contains Duplicate Easy https://leetcode.com/problems/contains-duplicate/
LC238 Product of Array Except Self Medium https://leetcode.com/problems/product-of-array-except-self/