Pattern quiz | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Pattern quiz

I made this pattern. I'll honestly be surprised if anyone can figure it out. /*bonus points if anyone can recreate it with a code*/ 0 0 1 1 4 5 9 14 16 30 25 55 36 91 49 140 64 204 81 285

1st Jul 2021, 9:29 PM
Blake Grass
Blake Grass - avatar
3 Respuestas
+ 2
Code : https://code.sololearn.com/cSDE49sNgGcu/?ref=app Explanation: from your hint both pattern starts with 0 . Then first pattern is square of numbers upto 9 The second pattern is element of first pattern + previous element of second pattern. Check out code to understand it in better way.
1st Jul 2021, 11:15 PM
Mayank Matwa
1st Jul 2021, 11:19 PM
Oma Falk
Oma Falk - avatar
+ 1
I'll give y'all a hint: it is two parrallel, but directly related, patterns 0, 1, 4, 9, 16, 25, 36, 49, 64, 81 0, 1, 5, 14, 30, 55, 91, 140, 204, 285
1st Jul 2021, 9:34 PM
Blake Grass
Blake Grass - avatar