Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
17

Weekly Challenge #17

TheDrone7
TheDrone7

Hello again replers! We just finished our fourth series of weekly challenges and at the end of a month,

@minx28
who was ranked 1st received 1 month of free hacker plan.

Today, we'll be starting another series of the weekly challenges and again, at the end of the month, whoever has the highest score, gets 1 month of free hacker plan!

That's it for the recap, moving forward, this week's challenge is given below!

WARNING : This is no longer beginner friendly!


Fibonacci Numbers

For those of you who don't know what it is, refer to this wikipedia page. The usual approach to calculating nth term of the series is either by using loops or recursion. For this week's challenge, you have to write a program that generates a user specified number of terms without using either of those 2 methods. No loops, no recursion.

The output only needs to have the Nth term.

Have fun with that one!

FAQ

  1. Are stdlib functions that might use looping or recursion behind the scenes allowed?
    A : Yes. But if you use them, you will lose 3 points from however much you get.

  2. Are external APIs or packages allowed?
    A : NO!

SUBMISSION

For submitting your codes for this challenge, you need to create a new post on repl talk share board and ensure that the post title contains #WEEKLY in it. The judging will go on throughout the week and as soon as the next post is made, the time window for submitting your code will end.


You can check out the last month's results here.

And that's it! Good luck with this week's weekly challenge and have fun!

2 years ago

Voters

Comments

TopNew
3
EpicGamer007
EpicGamer007

Fibonacci numbers: me: This is gonna be easy! || Kalm


@TheDrone7
: "Are external API's or packages allowed, NO!" : NUUUUUUUUUUUUU || PANIK

2 years ago
1
gibbsfreenergy
gibbsfreenergy

I was confused for a second. Nice name though.

@EpicGamer007

2 years ago
1
EpicGamer007
EpicGamer007

@JosephSanthosh
, its my name for multiple other accounts so i changed it.

2 years ago
3
AmazingMech2418
AmazingMech2418

Ah... Time for some metaprogramming. LOL!

2 years ago
3
HahaYes
HahaYes

@AmazingMech2418
haha metaprogramming. That should be intresting

2 years ago
1
AmazingMech2418
AmazingMech2418

@HahaYes
Thank you! I already did mine though. LOL!

2 years ago
2
HahaYes
HahaYes

@AmazingMech2418
oh you did. I'm thinking of starting this... I still have time right?

2 years ago
1
AmazingMech2418
AmazingMech2418

@HahaYes
I think so. You better go fast though!

2 years ago
3
Zavexeon
Zavexeon

me resisting the temptation to delete all the comments and comment "first"

2 years ago
2
Codemonkey51
Codemonkey51

WARNING : This is no longer beginner friendly!

Lmfao no:
https://repl.it/talk/share/Very-ez-WEEKLY-17/52554

2 years ago
2
dabs364
dabs364

Last week I made a post about the Fibonacci sequence... But, that used a for loop

2 years ago
2
RohilPatel
RohilPatel

is there a first term? it doesnt seem very specific

2 years ago
1
TheDrone7
TheDrone7

@RohilPatel
I mean, the series goes 0, 1, 1, 2, ... So 0 is the first term

2 years ago
1
Nayoar
Nayoar

@TheDrone7
thonk. I've usually seen 1 as the first term, 0 can be thought of as term number 0

2 years ago
1
AmazingMech2418
AmazingMech2418

@minx28
Same. I'm just going based on how Wolfram Alpha numbers everything. LOL!

2 years ago
1
xxpertHacker
xxpertHacker

Wow I'm late, I already had Binet's formula pinned on my profile for almost a whole year. Oh, I guess I didn't... too late to submit but: https://repl.it/@xxpertHacker/Binets-Formula.

2 years ago
1
gibbsfreenergy
gibbsfreenergy

Can I make a parody version of it? I made a non-parody version already!

2 years ago
1
HahaYes
HahaYes

Huh, this is getting intresting, I'll try to do it, but I guess I'll just wait until next month?

2 years ago
1
fuzzyastrocat
fuzzyastrocat

@HahaYes
Or you could try speedcoding :D

2 years ago
1
mwilki7
mwilki7

what about using event loops like in html5?

2 years ago
Load more