+ 8

Dont stick with Loops-Try Something New (Non-web)

I have been Noticing that Most of the people(including me) Have been Using For,while loops In all their Codes for challenges... This will make Them only good at thinking but they are Not Learning anything new ... only Loops Loops !!

27th Jan 2018, 8:13 AM
I'm_Groot
I'm_Groot - avatar
6 Respostas
+ 9
Your only option to go without loops is recursion https://code.sololearn.com/cUl07LlFzXzT/?ref=app
27th Jan 2018, 8:49 AM
Louis
Louis - avatar
+ 9
@ArthurHeitmann I'm Not saying you to avoid Loops Completely ,Make a Different Approach to Solve the problem,Use loop🔄 only when necessary Code with Only Loops : Not Vishal Srivatsava Only Most of the sololearners used For Loops for Solving the Challenge https://code.sololearn.com/czbav199FNmN/?ref=app Different Approach Of HATSY REI : Look at this Different Approach + loops https://code.sololearn.com/cZV8IMCG4xRg/?ref=app ■The First Code is Simple and clear Because its only Made of Loops theres no new thing to learn from that ■ But when you Look at the second code, Hatsy Rei Approached Differently Using the 'stringstream' He also used Loops But only when Necessary
27th Jan 2018, 12:27 PM
I'm_Groot
I'm_Groot - avatar
+ 6
@Louis I wasnt not speaking about that! People always use the same things(for,while,if)! that they know already They are not using anything new
27th Jan 2018, 8:52 AM
I'm_Groot
I'm_Groot - avatar
0
So what are you suggesting?
27th Jan 2018, 9:43 AM
Arthur Heitmann
Arthur Heitmann - avatar
0
Arthur Heitmann what I'm Trying to say is that try to solve the problem given in the style of the language that you are coding If you are using python to solve a problem ,try to solve it in pythonic way
10th Feb 2019, 6:11 AM
I'm_Groot
I'm_Groot - avatar