Skip to content

Commit 6f1fd4e

Browse files
committed
updating readme and added jest
1 parent 75a59ee commit 6f1fd4e

File tree

4 files changed

+4059
-1
lines changed

4 files changed

+4059
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Nodejs
2+
/node_modules

README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
# leetcode problem solving repo
1+
# Leetcode problem solution
2+
23
Practice problem solving on leetcode
4+
5+
## Prerequisites
6+
7+
```bash
8+
Node.js/npm
9+
jest
10+
```
11+
12+
## Installation
13+
14+
```bash
15+
git clone https://github.com/soumsps/leetcode.git
16+
npm install
17+
```
18+
19+
## How to run the test for solutions?
20+
21+
> #### Example 1: For running test on single Leetcode problem
22+
23+
```bash
24+
Run tests for 2020/01_January/LC1_TwoSum
25+
26+
cd into the 2020/01_January/ directory
27+
Then run:
28+
29+
jest --watch LC1_TwoSum
30+
```
31+
32+
> #### Example 2: For running test on complete month (eg. 01_January, 02_Feburary) of year 2020
33+
34+
```bash
35+
Run tests for 2020/01_January
36+
37+
cd into 2020
38+
Then run:
39+
jest --watch 01_January
40+
jest --watch 02_Feburary
41+
```

0 commit comments

Comments
 (0)