Code Upgrade [Challange] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 16

Code Upgrade [Challange]

Hey, A nice challange to keep you busy ☺ Find a old code that you made when you started learning and give it an upgrade by reducing code or improving output showing both versions. Use "V2" in your code name to show new version. Heres my attempt. https://code.sololearn.com/c7pzdy4lk3oi/?ref=app https://code.sololearn.com/cwGSd46Gdl8l/?ref=app Have Fun!

17th Jan 2018, 12:06 PM
D_Stark
D_Stark - avatar
7 Answers
17th Jan 2018, 12:27 PM
Louis
Louis - avatar
+ 8
Here is one that I wrote on the same day. V2 is just way more generic than V1 https://code.sololearn.com/cHCbBL9QFZij/?ref=app https://code.sololearn.com/c3cbSGib6xb4/?ref=app
26th Jan 2018, 4:51 AM
Louis
Louis - avatar
18th Jan 2018, 1:30 PM
LunarCoffee
LunarCoffee - avatar
+ 4
https://code.sololearn.com/cCBxT74yQ6pB/?ref=app https://code.sololearn.com/crXFy221OtHP/?ref=app
25th Jan 2018, 5:43 PM
...
+ 2
https://code.sololearn.com/c51oMyVHsGkK/#py the function isDiag_V2 is faster than isDiag.
18th Jan 2018, 1:04 AM
Lindsay Linjie Chen
Lindsay Linjie Chen - avatar
18th Jan 2018, 5:16 PM
CCtuhulu
CCtuhulu - avatar
0
https://code.sololearn.com/W2J8H89mUb07/?ref=app https://code.sololearn.com/Wxc4cPBg5ZOo/?ref=app
14th Jan 2019, 5:14 PM
Mrityunjay
Mrityunjay - avatar