leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

format.sh (195B)


0 #!/bin/bash
1 # Format newly added files using clang-format
3 for i in $(git status | grep -v "deleted" | grep -Eo "(Problems|Templates).*\.cpp")
4 do
5 echo "Formating: $i"
6 clang-format -i $i
7 done