+ 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

8th Apr 2018, 12:31 PM
D_Stark
D_Stark - avatar
12 Respostas
8th Apr 2018, 4:30 PM
Louis
Louis - avatar
+ 16
https://code.sololearn.com/ca5oG2VY24Yn/?ref=app
8th Apr 2018, 6:01 PM
LukArToDo
LukArToDo - avatar
8th Apr 2018, 1:27 PM
Aaron Stone
Aaron Stone - avatar
+ 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
8th Apr 2018, 3:07 PM
D_Stark
D_Stark - avatar
+ 5
https://code.sololearn.com/ctcEG56UaA7D/?ref=app
8th Apr 2018, 12:42 PM
Emma
+ 4
Updated mine also.
8th Apr 2018, 3:32 PM
Aaron Stone
Aaron Stone - avatar
+ 2
Updated my code.
8th Apr 2018, 3:25 PM
Emma
+ 2
updated
8th Apr 2018, 3:44 PM
hinanawi
hinanawi - avatar
+ 2
Some fun solutions everyone â˜șâ˜șâ˜ș
8th Apr 2018, 6:09 PM
Emma