Skip to content

ducktyper/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Leetcode

Solutions to leetcode.com problems

Solutions in C

Run test

Execute test.sh with problem number to run test.

e.g. Run leetcode_001_two_sum_test.c having 5 assertions

sh test.sh 001
.....

Add -a to run all tests (except helper).

sh test.sh all
leetcode_001_two_sum_test.c 
.....
leetcode_002_add_two_numbers_test.c 
....

Add -b to run benchmark (Shows how many runs in 2 seconds).

e.g. Run leetcode_001_two_sum_test.c having 5 assertions with benchmark

sh test.sh 001 -b
.....
Benchmark: 225 runs in 2 seconds

e.g. Test helper.c

sh test.sh helper

About

Solutions for leetcode.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published