All Questions
Tagged with fibonacci-sequence javascript
16 questions
0
votes
1
answer
159
views
Can I optimize my implementation of generating Fibonacci series using recursion?
My function accepts a number, which generates total Fibonacci numbers. I am using recursion.
Please follow the code below,
...
1
vote
3
answers
213
views
Printing the first n numbers of the Fibonacci sequence
I have written a code below for printing the first n fibonacci numbers,
the code is as follows
...
1
vote
1
answer
244
views
JavaScript function that generates Fibonacci like sequences of given order
Generalizations of Fibonacci numbers
Fibonacci numbers of higher order
A Fibonacci sequence of order \$n\$ is an integer sequence in which each
sequence element is the sum of the previous \$n\$
...
1
vote
1
answer
412
views
Fibonacci sequence array in Javascript
This is my third day of learning Javascript through an online class. I learned about arrays and while/for loops today, and to practice all of that stuff the challenge I'm working on is to make a ...
1
vote
2
answers
1k
views
0
votes
1
answer
2k
views
Javascript Fibonacci with dynamic programming
Trying to applying what seen on What Is Dynamic Programming and How To Use It (here: https://www.youtube.com/watch?v=vYquumk4nWw )
Obviuously this is the final code, after removing the recursion.
I ...
1
vote
2
answers
101
views
Output string length and classical Fibonacci sequence in a web page
I wrote a JavaScript and XHTML webpage. I think the format of the output is not better or the validation process is not as it is supposed to be. How can I improve the code? How can I make it more ...
6
votes
2
answers
228
views
Project Euler #2 with a fibSequence and result
I have a background in Linguistics and my journey as an aspiring developer has just begun.
I was hoping you could give me a feedback on the solution I have come up with for the second challenge of ...
1
vote
1
answer
171
views
Sum All Odd Fibonacci Numbers, freecodecamp challenges
Recently I took a challenge on freecodecamp to solve the given problem:
"Sum All Odd Fibonacci Numbers"
Here is my code:
...
9
votes
3
answers
1k
views
Find fibonacci series upto a given maximum in javascript
I'm attempting to find a fibonacci series where the last number is no greater than a given maximum. Given the start digits 1, 2
...
8
votes
6
answers
2k
views
Calculating Fibonacci numbers
The following problem is currently taking more than 8 seconds to execute. Please help me to modify the program, so that execution time will be reduced.
...
0
votes
1
answer
395
views
Fibonacci Sequence - Faster method?
Just decided to make a quickie Fibonacci Sequence via jQuery and I was wondering if anybody can think of a faster way to interpret it? I can type pretty much any number in and it returns in a fraction ...
11
votes
8
answers
1k
views
Fibonacci checker
I wrote a simple Fibonacci checker using HTML, CSS, and JS. This is my first JS program, so be sure to tell me everything that is wrong with it. Check it out here (http://jsfiddle.net/z49fyypt/1/), ...
4
votes
3
answers
809
views
How would you count in the Fibonacci Sequence?
I was wondering if I did this in a remotely acceptable way:
...
3
votes
2
answers
771
views
Fibonacci using cache
This is my simple Fibonacci implementation in CoffeeScript. What do you think? Using cache (fibResults), it's very very fast.
...