+ 1

Popsicles & Siblings Code coach: need explanations

Will someone help me to understand about the code of this challenge. I honestly cheated this task because i'm confuse about it. But when i saw the code that i have cheated. My god that was too easy but. I never understand how it does it work. I really hate my brain for such being "wanna be programmer"

20th Feb 2020, 1:34 PM
RJ Berin
RJ Berin - avatar
5 odpowiedzi
+ 15
RJ Berin I appreciate your honesty with this as we are having a number of members cheat themselves by just copy pasting existing codes for these challenges. This is according to our Rules a Violation of our Fair Play policies as you are unfairly gaining xp. We do understand new coders excel when provided examples of running codes as you can see we offer countless public codes so people can learn from examples. That being said we can learn from code without copying it. I wish you the best in your learning adventure and I hope this serves as a reminder to many it's ok to learn from examples but we truly learn by creating codes we write ourselves.
20th Feb 2020, 2:26 PM
bobbie
bobbie - avatar
+ 9
In my honest opinion, the most successful way to make progress is to just temporarily ignore programming problems that seem too hard. When you read the description of a task, you should already have *some* idea how to solve it. If you don't - just search for an easier target. By solving easy problems one after another, you gradually build up your algorithm muscle. Ten such tasks later, when you look at that hard riddle again, it may suddenly seem easy to you. However, this is a path you must walk yourself. Only by practicing with your own hands, you will learn how to code. No amount of 'explanation' by other people will get you there. For more thoughts about the topic, you might want to read this thread: https://www.sololearn.com/discuss/1566003/?ref=app
20th Feb 2020, 3:05 PM
HonFu
HonFu - avatar
+ 6
They may be simple riddles in comparison to what is out there - but if you can't solve them, they're too hard anyway. When I train in the gym, I almost die, lifting not even half of the weight most healthy men should be able to lift. There's no point comparing oneself to others - you gotta start where you personally are right now, work with weights you can lift. In the beginning, that entails getting the basics straight: Read a good beginner tutorial - in a concentrated fashion! - and practice everything presented in there, until it starts to make sense.
20th Feb 2020, 3:40 PM
HonFu
HonFu - avatar
+ 4
HonFu popsicles is low level. A simple if. Many have that **some** idea instinctively maybe because they solved puzzles since they could read. ...and cheating by getting solution. But if not they have a problem. SL is great in teaching all the languages and begins at ground zero. But for algorithms it is the code coaches. But no learning before. Things can be done: ..Did RJ Berin understand the challenge...can he repeat with own words .. Can he create examples 7 and 5 means keep them while 8 and 4... .. Can he explain why examples make this output ....yes 8 is divisible by 4 ... can he generalize that example ...if popsicles is divisible by siblings..... Now we have an if statement to transfer to syntax. ... can he create an if statement... if not ...where to find how to do ..can he express divisibility... if not.... That needs time(maybe seconds for you and me if it is not yet an automatism) and maybe a helping hand for the first tries. And finally practicing....on his own.
20th Feb 2020, 3:29 PM
Oma Falk
Oma Falk - avatar
+ 1
Thanks guys, really appreciated it. I will keep studying and practicing. This is not the end. Thank you again for the wisdoms. Hopefully soon i may contribute something that someone will be proud of it. Thanks guys.
21st Feb 2020, 11:39 AM
RJ Berin
RJ Berin - avatar