Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9237081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:27:14+00:00 2026-06-18T07:27:14+00:00

Possible Duplicate: nth fibonacci number in sublinear time I was creating a program which

  • 0

Possible Duplicate:
nth fibonacci number in sublinear time

I was creating a program which is related to the stair problem, i.e you have n stairs and the player can climb on the stairs using them one by one or skipping one …

Now to solve this problem I needed nth (n+1)th term for the Fibonacci for n number of stairs, but the problem is my input range is 1 ≤ n ≤ 1000000.

And for that much greater value of n if I use the loop based method or recursion to calculate the Fibonacci the method takes very much time and space. That I do not have.

So please can you tell me some method in the Java or C to handle Fibonacci series up to that range with correct output?

Note: Please I do not need any solution which has recursion or loop.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:27:15+00:00Added an answer on June 18, 2026 at 7:27 am

    Look at the following page, maybe it will help: https://www.nayuki.io/page/fast-fibonacci-algorithms

    For me their Java example managed to calculate 1000000th Fibonacci number. It is 208988 digits long.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Find out 20th, 30th, nth prime number. (I’m getting 20th but not
Possible Duplicate: How to get nth jQuery element I have this simple code: <ul>
Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file
Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: How do I determine if a given date is Nth weekday of
Possible Duplicate: Does every Core Data Relationship have to have an Inverse? I have
Possible Duplicate: I have a nested data structure / JSON, how can I access
Possible Duplicate: Why does my cout output not appear immediately? I have a very
Possible Duplicate: Combining jQuery :not and :nth-child selectors is this possible? Here is my
Possible Duplicate: How to select the nth row in a SQL database table? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.