Most of the time, the solution in competitive programming tasks aren't meant for others to read properly but to get accepted. So, don't worry if you can't understand those codes.
Explore Github. You will find plenty of well written codes.
I don't know if it's normal to get stuck to solve an easy problem for two days and at the end of the day you have no result!
It's obviously normal. Just take a look at this.
After 9 attempts the code got accepted.
Here is a pro tip: Try to solve a problem in different approaches.
Most of the time, the solution in competitive programming tasks aren't meant for others to read properly but to get accepted. So, don't worry if you can't understand those codes.
Explore Github. You will find plenty of well written codes.
It's obviously normal. Just take a look at this.
After 9 attempts the code got accepted.
Here is a pro tip: Try to solve a problem in different approaches.
WOW, I can just say thank you sooooo much Muhimen for inspiring me and giving me motivational words.
Happy Coding ;)