Ok, maybe not a beginner…but I’m surely a noob in competitive programming and most of the 1-star guys are super-noob!!! according to me!!
Thank-you so much Sir, will follow your footsteps 
Haha agree . But i (maybe everyone) don’t consider div-1 person to be called as noob .
lol i was waiting for him to reply to know what triggered him so much
Now we know coz of you
Thanks!!
2nd ques of what?? be more precise
Maybe Amazon contest !
I think main idea seems correct… Were you getting wrong answer ?
Only the sample test case passed.
Now i can’t find the link to the questions for testing.
anyone hav the prob statement ?
i could not access it now
you need to find lower bound of y-1 and not Y. that’s the only mistake you made. I was getting WA due to same. But i figured it out luckily.
This from a 5* coder… ![]()
Here are somethings i found useful (i am pretty sure you have already seen these):
(not in any order)
- cses.fi/problemset/
- Programming Camp Syllabus - Google Docs (Programming Camp Syllabus)
-
cp-algorithms.com/ (better then GFG
) - Sphere Online Judge (SPOJ) - Problems (they say the first 300 problems are really worth doing)
- quora.com/profile/Bohdan-Pryshchenko/answers/Competitive-Programming (quora can be helpful)
- Learn Data Structures and Algorithms | DSA tutorials | CodeChef


Thanks.
Thankyou so much bro 
“No matter what stars you’ve,always have the learning attitude like that of a beginner” 
Luckily u had not posted this on codeforces, or it would have brought u a handsome number of downvotes or dislikes for such kind of humour .

Luckily I know what things to say at which place:joy:

That contest was not that hard.
That good ranges question was really easy one if one solves on copy and pen. I mean it didn’t even require STL, though I solved with pbds as well 
And other one was not that tough. I find Long Easy-Medium and above question of codechef way more tougher than that.
To answer question on way to improvement. I have found only one way that is practice, my ratings though lower than you, But I have spent my fair share in competitive programming. I have touched almost every colour of on codeforces on my way to 22 points less than div1 (still trying
) and have gone to 1 star and also been 5 stars on codechef. In my last year, only thing that helped me is practice. Always try questions which you cannot solve in contest. For example when I am unable to solve div2D or div2E I learn them and solve them. Same goes for codechef. I fail many times on Easy-Medium and Medium (so ofcourse I fail on tougher ones). So I have only one goal to solve them as much as possible that these questions become like regular questions to me. Hope I will reach heights in competitive programming as well one day.
Good Luck to everyone else as well. High ratings everyone.
Thankyou






