paint-brush
Even Fibonacci numbers (Python vs. JavaScript)by@ethan.jarrell
7,136 reads
7,136 reads

Even Fibonacci numbers (Python vs. JavaScript)

by Ethan Jarrell3mMarch 7th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Generating the Fibonacci sequence in some form is a popular technical interview problem for employers. One variation of the popular Fibonacci number problem is generating all of the even numbers in the sequence. Here, I’m going to look at two possible ways to do this, using Python and JavaScript. To make things more simple, we are only going to generate the even numbers in the sequence below 4,000,000, and then get the sum of all of those numbers.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Even Fibonacci numbers (Python vs. JavaScript)
Ethan Jarrell HackerNoon profile picture
Ethan Jarrell

Ethan Jarrell

@ethan.jarrell

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite