소스 검색

Added script to run all problems

master
Lachlan Jacob 5 년 전
부모
커밋
8ccb2b0e4b
2개의 변경된 파일20개의 추가작업 그리고 1개의 파일을 삭제
  1. 10
    1
      README.md
  2. 10
    0
      all.sh

+ 10
- 1
README.md 파일 보기

@@ -8,7 +8,7 @@ Aiming for one a day, to try be a little consistent.

Folder Names will Be Puzzle Numbers and contain:

- main.<language extension> will be the code submitted. (Some code may have to be modified to run outside of LeetCode's driver).
- `main.<language extension>` will be the code submitted. (Some code may have to be modified to run outside of LeetCode's driver).
- run.sh (This will contain a bash scipt to run/compile+run the code.

## Necessary Dependencies
@@ -19,3 +19,12 @@ To run all problems you will need installed on your system:
- rustc
- gcc
- SQlite

Then you can see all the problems go through an example case with:

```bash
$ ./all.sh
```

Why you would want to do this I do not know, but it's kind of cool.


+ 10
- 0
all.sh 파일 보기

@@ -0,0 +1,10 @@
#!/bin/bash

for f in *; do
if [ -d ${f} ]; then
echo "Running Problem: $f"
cd $f
./run.sh
cd ..
fi
done

Loading…
취소
저장