+ 10
Starks Number Pattern [Challenge]
Hey I was messing around with some numbers and created this pattern not too sure what it is but i thought it looked cool 😜 Study it and see if you can solve it with a code , i will publish my solution shortly. Input: 10 Output is to look like the following: 0 - 1 = 1 1 - 2 = 1 1 - 3 = 2 2 - 4 = 2 2 - 5 = 3 3 - 6 = 3 3 - 7 = 4 4 - 8 = 4 4 - 9 = 5 5 -10 = 5 (edit the sum can output minus or positive) Thanks
12 ответов
+ 5
Here is a Python solution
Oneliner
https://code.sololearn.com/c0iiZD88758p/?ref=app
+ 16
https://code.sololearn.com/ca5oG2VY24Yn/?ref=app
+ 8
+ 8
Hey guys so sorry 😔 i just realised that i made this not thinking about the sum equalling a minus 😅 do you mind changing yours to minus or swap the middle column around with the first so your sum is positive sorry, heres my attempt 👍
https://code.sololearn.com/cCSu52OW2uw3/?ref=app
+ 5
https://code.sololearn.com/ctcEG56UaA7D/?ref=app
+ 4
Updated mine also.
+ 2
Updated my code.
+ 2
updated
+ 2
Some fun solutions everyone ☺☺☺