GitXplorerGitXplorer
k

coconuts

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
b4a1a36386825292e0f6e86f2b4fac0d66a9238d

Doc updates

committed 10 years ago
Unverified
51f7da3dd8977211b6a1def26f16c17347b0f4e3

Typo

committed 10 years ago
Unverified
96348b64de02359c578b80a7fd025d56fba0d7b0

Typo

committed 10 years ago
Unverified
af1e7014fecef30600aed65567a39cd96be40918

Add overall documentation

committed 10 years ago
Unverified
d38bb4ccecbbf79b67b77bb8982eecd32b894e74

Get filename from argv

committed 10 years ago
Unverified
e794721c6885912140798ef383bb768491c9a6fb

Improve readability. Time is actually in seconds not ms

committed 10 years ago

README

The README file for this repository.

Please see my solution notes for the described problem.

Java is my "native tongue" so to speak so I wrote a reference implementation in Java to save myself from having to both solve the problem and remember how to code python. It has been a number of years since I've written a line of python so please excuse the Java idioms in the code. I'm certain that are more "pythonic" ways to implement some of the logic that I wrote.

If you want to run the java solution, cd to the java directory and run

export MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=512m"
mvn clean compile exec:java

You can also run the test cases with

mvn clean test

If you want to run the python solution, cd to the python directory and run

python main.py data/sample_paths.txt
python main.py data/flight_paths.txt

You can also run the test cases with:

python test.py