Explorar el Código

Added script to run all problems

master
Lachlan Jacob hace 5 años
padre
commit
8ccb2b0e4b
Se han modificado 2 ficheros con 20 adiciones y 1 borrados
  1. 10
    1
      README.md
  2. 10
    0
      all.sh

+ 10
- 1
README.md Ver fichero

@@ -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 Ver fichero

@@ -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

Cargando…
Cancelar
Guardar