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

Fibonacci HashMap #31

Open
compar opened this issue Nov 13, 2019 · 0 comments
Open

Fibonacci HashMap #31

compar opened this issue Nov 13, 2019 · 0 comments

Comments

@compar
Copy link

compar commented Nov 13, 2019

jdk8
f.fibonacci(15);
result:
{0=0, 1=1, 2=1, 3=2, 4=3, 5=5, 6=8, 7=13, 8=21, 9=34, 10=55, 11=89, 12=144, 13=233}

cache = new HashMap<>(); // Lack 14,15 why?
cache = new TreeMap<>(); // use TreeMap ok

@compar compar changed the title Fibonacci Fibonacci HashMap Nov 13, 2019
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

1 participant