Przeglądaj źródła

Added script to run all problems

master
Lachlan Jacob 5 lat temu
rodzic
commit
8ccb2b0e4b
2 zmienionych plików z 20 dodań i 1 usunięć
  1. 10
    1
      README.md
  2. 10
    0
      all.sh

+ 10
- 1
README.md Wyświetl plik



Folder Names will Be Puzzle Numbers and contain: 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. - run.sh (This will contain a bash scipt to run/compile+run the code.


## Necessary Dependencies ## Necessary Dependencies
- rustc - rustc
- gcc - gcc
- SQlite - 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 Wyświetl plik

#!/bin/bash

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

Ładowanie…
Anuluj
Zapisz