ソースを参照

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

読み込み中…
キャンセル
保存