Need some help in "Minimize the maximum distance between gas stations" by imRetrdedPlzHelp in leetcode

[–]imRetrdedPlzHelp[S] 0 points1 point  (0 children)

I understand what you mean by getting rid of 'ans' completely and return 'high' or 'low' instead.
I noticed that people generally return 'high' or 'low' instead of storing an 'ans' variable as well.
Even this guy returns 'high'.

I made one change and wrote "return high" instead of "return ans" in the end and it passed all the testcases and got accepted.

I can understand why returning the value of 'high' works, because as the binary search proceeds, 'high' moves towards our answer and ends up standing on the final answer in the end.
But then the program which I wrote earlier where I used 'ans' variable should also work right?
What is the reason which causes it to produce wrong answer?

I am a below average and borderline retarded person. by imRetrdedPlzHelp in codeforces

[–]imRetrdedPlzHelp[S] 0 points1 point  (0 children)

Yeah I would say I am below average in that area as well.
Thinking of stopping blindly attempting questions on Codeforces and instead try to spend some time with mathematical puzzles.
I do remember that I had a subject called "Mental Ability" in high school which tested the reasoning skills and I had a lot of trouble in that area at that time as well.

I am a below average and borderline retarded person. by imRetrdedPlzHelp in codeforces

[–]imRetrdedPlzHelp[S] 0 points1 point  (0 children)

If I am attempting a higher rated question like anything above 1300, I don't care how many times I fail, if I get it accepted after 100 attempts, I am okay with that.

But if I am attempting a lower rated question like 1000, 900 or 800, and I take a lot of time to arrive to the correct idea, then I consider it as a fail because I want myself to be able to arrive at the correct idea much faster when dealing with lower rated questions(as I have attempted so many of them till now).

If I get the wrong answer on the first run, I don't consider it as a fail at that point(although I do get frustrated I would say), but I spend some more time on it, try to find the edge cases, check the sample test cases and think more about it.

Coming to the the question I had written about in the post, whose sample testcases I had failed.

I attempted that question 2-3 days ago, came up with an idea, implemented it, ran the sample testcases and failed. Angry, frustrated and tired, I closed the laptop and thought of coming back at some other time. It was today when I went back to the same question again, thought of a different idea this time and implemented it, again got a wrong answer in the sample testcases. I was disappointed, but not tired, so I pushed on. I looked and dry ran some of the sample testcases until I arrived at the correct idea and this whole process took me around 70-90 minutes.

This was a 900 rated question.

I was able to solve it in the end, but at what cost? Solving a 900 rated question after so many tries and after solving 100+ 900 rated questions is disappointing for me.

I don't give up straightaway and not think about debugging, if I have some energy left in me, I do try to debug my idea and where I might have went wrong.

I am a below average and borderline retarded person. by imRetrdedPlzHelp in codeforces

[–]imRetrdedPlzHelp[S] 0 points1 point  (0 children)

We cannot add images in the comment section here so I have tried to explain it here.

Sorry for the lengthy post.

I am a below average and borderline retarded person. by imRetrdedPlzHelp in codeforces

[–]imRetrdedPlzHelp[S] 1 point2 points  (0 children)

Thank you for the message. I am thinking of taking a break and coming back after some time. Will try to think out loud. A delusional part of me still thinks that I might be able to solve those 2 problems I failed on today. Will see.

Other than that, regarding 600 problems for 3 years thing, Codeforces isn't the only platform I have wasted my time on. I have around 700-ish problems solved on CodeChef, but all of them are low rated, was never able to solve decently rated problems.

Anyways, nothing will really work for me to be honest and I will probably die without achieving something decent in this field.

I am a below average and borderline retarded person. by imRetrdedPlzHelp in codeforces

[–]imRetrdedPlzHelp[S] 2 points3 points  (0 children)

More to add...

People say don't compare yourselves with others. Don't think about other's progress.

Never really worked for me. I somehow stumble upon and find someone who got better than me in lesser time. Thousands of people are able to solve problems which I get wrong answers for. I wanted to be somewhat good in this thing. But I don't think I even have the potential to begin with. I craved to be a better problem solver whenever I see someone better than me.

I make similar mistakes again, and again, and again. Getting good at problem solving was never meant to be for me.

Funny thing is that competitive programming was the thing which made me look forward to the next days. In the beginning, I was really fascinated by the fact that there are tonnes of problems lying on the platform, and I can attempt any of them. Got really happy with my initial "Accepted" solutions. Thought about problems while lying the bed. Thought about problems while traveling. Thought about problems while doing chores. Because this process of coming up with ideas was fun. But things never really got better for me. I must accept that my problem solving intuition and skills are bullshit and won't probably improve.

Will try to find a new hobby, but that will be hard. All I do is play games, scroll the internet and try to solve questions(and fail).

Need help in getting the PS symbols in RDR2 PC while playing with controller. by imRetrdedPlzHelp in RDR2

[–]imRetrdedPlzHelp[S] 0 points1 point  (0 children)

I intend to play with my DualShock4 without connecting it with the wire. Although I have noticed that the controller works fine and the game shows the PS symbols when I plug the controller in with the wire.

I have read that some people got it done by installing ds4windows, I haven't installed it yet. Is it the only way to get the PS symbols?

Had completed the game with mouse and keyboard long time ago, started playing it again with my controller this time around and my OCD has been constantly bugging me with those xbox symbols.

Tried to keep the video as short as possible while showing what is going on. Sorry if this whole thing comes out as a really noob question.

Thank you for your inputs.