Skip to content
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

Add my implementation please :) #3

Open
f0c14e08c2 opened this issue Mar 21, 2019 · 5 comments
Open

Add my implementation please :) #3

f0c14e08c2 opened this issue Mar 21, 2019 · 5 comments

Comments

@f0c14e08c2
Copy link

Here is my repo: https://github.com/f0c14e08c2/adfa074714

@scientist1642
Copy link
Owner

scientist1642 commented Mar 21, 2019

Sure, can you make it print
1435,rea,rae,are,aer instead of
load:886,srch:548,all:1435,rea,rae,are,aer
or make a separate class file with this modification?

@f0c14e08c2
Copy link
Author

f0c14e08c2 commented Mar 21, 2019 via email

@f0c14e08c2
Copy link
Author

f0c14e08c2 commented Mar 22, 2019

Done. You can pull binary files or sources.

Tested on old i7 with old SSD, implementarion is single threaded:)
$ echo 3 > /proc/sys/vm/drop_caches a
$ java AnagramApplication lemmad.txt eer
4705,ree,ere

@scientist1642
Copy link
Owner

@f0c14e08c2 Added results from virtualbox. might run it on my other hardware later. Impressive!
Any comment how it runs that fast? Didn't go through code.

@f0c14e08c2
Copy link
Author

It can reduce the search area to a minimum and skip viewing most of the file because it sorted;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants