+ 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 !!
6 Answers
+ 9
Your only option to go without loops is recursion
https://code.sololearn.com/cUl07LlFzXzT/?ref=app
+ 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
+ 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
0
So what are you suggesting?
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