Skip to content

Result print #1027

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

Merged
merged 2 commits into from
Oct 12, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Size
  • Loading branch information
salonilakhotia committed Oct 12, 2019
commit f5752234b45bcce2ce713d2d213c1fb59013b2fb
6 changes: 3 additions & 3 deletions DynamicProgramming/Fibonacci.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public class Fibonacci {
public static void main(String[] args) throws Exception {

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int size = Integer.parseInt(br.readLine());

// Methods all returning [0, 1, 1, 2, 3, 5, ...] for n = [0, 1, 2, 3, 4, 5, ...]
System.out.println(fibMemo(n));
System.out.println(fibBotUp(n));
System.out.println(fibMemo(size));
System.out.println(fibBotUp(size));
}

/**
Expand Down