-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Floyd Warshall [Java] #371
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ba30f55
Added Breadth First Search [C++]
f439909
modified
3540973
indentation improved
b0fd22d
unnecessary files removed
6204888
unnecessory files removed
41c0283
unnecessary files removed
f7b1159
issues in readme solved
dc38cf8
replaced tabs with spaces
b99da59
Extra line in readme removed
6c43674
Added Floyd Warshall [Java]
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
sudo apt-get update | ||
sudo apt-get install -y $(grep -vE "^\s*#" apt-requirements.txt | tr "\n" " ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
go get -u github.com/golang/lint/golint | ||
cd $GOPATH/src/github.com/golang/lint | ||
go install . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
npm install -g $(grep -vE "^\s*#" npm-requirements.txt | tr "\n" " ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Testing C files..." | ||
for i in $(ls -1 **/*.c); do | ||
echo " Compiling $i - gcc $i -lm -std=c11" | ||
gcc $i -lm -std=c11 | ||
echo " Running $i - ./a.out > /dev/null" | ||
./a.out > /dev/null | ||
rm -f a.out | ||
echo "" | ||
done | ||
|
||
echo "" | ||
echo "Testing C++ files..." | ||
for i in $(ls -1 **/*.cpp); do | ||
echo " Compiling $i - g++ $i -lm -pthread -std=c++11" | ||
g++ $i -lm -pthread -std=c++11 | ||
echo " Running $i - ./a.out > /dev/null" | ||
./a.out > /dev/null | ||
rm -f a.out | ||
echo "" | ||
done | ||
|
||
echo "" | ||
echo "Testing Java files..." | ||
for i in $(ls -1 **/*.java); do | ||
echo " Compiling $i - javac -Werror -Xlint:all $i -d ." | ||
javac -Werror -Xlint:all $i -d . | ||
filename="${i##*/}" | ||
classname="${filename%.*}" | ||
echo " Running $i - java $classname > /dev/null" | ||
java $classname > /dev/null | ||
echo "" | ||
done | ||
rm -f *.class | ||
|
||
echo "Testing Python files..." | ||
for i in $(ls -1 **/*.py); do | ||
echo " Running $i - python2 $i > /dev/null" | ||
python2 $i > /dev/null | ||
echo " Running $i - python3 $i > /dev/null" | ||
python3 $i > /dev/null | ||
echo "" | ||
done | ||
|
||
echo "" | ||
echo "Running Go files..." | ||
for i in $(ls -1 **/*.go); do | ||
echo " Running $i - go run $i > /dev/null" | ||
go run $i > /dev/null | ||
echo "" | ||
done | ||
|
||
echo "" | ||
echo "Running JavaScript files..." | ||
for i in $(ls -1 **/*.js); do | ||
echo " Running $i - node --use-strict --harmony $i > /dev/null" | ||
node --use-strict --harmony $i > /dev/null | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ | |
.DS_Store | ||
# coala | ||
*.orig | ||
|
||
# Jetbrains | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
dist: trusty | ||
language: python | ||
python: | ||
- "3.6" | ||
sudo: required | ||
language: node_js | ||
node_js: | ||
"7" | ||
|
||
env: | ||
GOPATH: $HOME/go | ||
PATH: $GOPATH/bin:$PATH | ||
|
||
install: | ||
- sudo apt-get update | ||
- sudo apt-get install golang-go | ||
- sudo apt-get install ghc-mod hlint | ||
- curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - | ||
- sudo apt-get install -y nodejs | ||
- sudo npm install -g happiness | ||
- go get -u github.com/golang/lint/golint | ||
- cd $GOPATH/src/github.com/golang/lint | ||
- go install . | ||
- pip install coala-bears | ||
- cd $TRAVIS_BUILD_DIR | ||
- ./.bin/install_apt.sh | ||
- ./.bin/install_go.sh | ||
- ./.bin/install_npm.sh | ||
- pip3 install -r pip3-requirements.txt | ||
- pip2 install -r pip2-requirements.txt | ||
|
||
script: | ||
- ./.bin/test_running.sh | ||
- coala --ci | ||
- eclint check "**/*.{java,c,cpp,js}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2017 IIITV GitHub Group | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't Include files that are not relevant to this PR