0

Somebody help me find the bug in my code please!!

It's a problem in the community section named "Hofstadters's Q-sequence". Here's my code:-----------> https://code.sololearn.com/cU19mhv9CrIH/?ref=app

25th Jul 2023, 10:44 AM
Vaibhav Pandey
4 Respuestas
+ 2
Vaibhav Pandey may be responding too late..!! With recursion, you will get time out there.. I tried several but not passing all. With memorization technique, passing 3,4,5 but not last one.. Use just loop and list for this test to pass.. Hope it help... Edit: https://www.sololearn.com/discuss/3021331/?ref=app
27th Jul 2023, 3:06 PM
Jayakrishna 🇮🇳
+ 3
What bug you are getting there? Add error details...
25th Jul 2023, 11:41 AM
Jayakrishna 🇮🇳
+ 2
Sololearn is down right now... Will try later...
25th Jul 2023, 11:52 AM
Jayakrishna 🇮🇳
+ 1
Jayakrishna 🇮🇳 Test Case 3,4,5 is not passing for some unknown error , i checked my code several times but I found that it perfectly gives the value but still it's not passing the Test Case.
25th Jul 2023, 11:43 AM
Vaibhav Pandey