Kaynağa Gözat

Added script to run all problems

master
Lachlan Jacob 5 yıl önce
ebeveyn
işleme
8ccb2b0e4b
2 değiştirilmiş dosya ile 20 ekleme ve 1 silme
  1. 10
    1
      README.md
  2. 10
    0
      all.sh

+ 10
- 1
README.md Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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…
İptal
Kaydet