Skip to main content

Posts

Showing posts from May, 2020

Real Cool Problems and Answers

Real Cool Problems and Answers In this blog I will keep updating the most beautiful questions I find in the day and the concept behind it and also briefly explain it. This would help me make notes and you to see beautiful problems with some hints. Before starting, prepare yourself to try some of the best problems you have on codeforces and hackerrank and much more. Please comment good questions and concepts you want to understand(I am not a pro, we would understand it on our way). Mixing Water: Link: https://codeforces.com/contest/1359/problem/C Concept: Simple yet elegant math. A simple question but the catch is somewhat tricky.Simple two equations. Let x be number of cups of hot water, y be number of cups of cold water, and the net temperature would be (x*h+y*c)/(x+y). We want this to be as close as possible to t. Suppose ths expression is equal to t then equation becomes (x*h+y*c)=t*(x+y). and my x can be y or y+1(think about it or comment if you can't figure it). So...

Competitive Prograaming From 1000 rating to 2400+

Okay, so let's talk about some strategies for competitive programming. I was once a gray coder as I was totally new to programming when I entered codeforces. FROM GRAY TO GREEN:     First of all, you need to be good at brute force and implementation. If you are a complete beginner then do 20-30 800-1200 problems and you will b good at solving A level problems in 5-10 minutes. The try to do B in a live contest in 15-30 minutes only. By only this you can shift your rating to 1200 or so. FROM GREEN TO CYAN Now, to increase your speed you just need to practice more A and B level problems. As you are now quite confident of solving A and B level problems you must now try C also which is generally of 1400-1700 rating. This require some special techniques such as prefix sum, or some simple trick methods for reducing time complexity. Now the mistake I did was I tried to learn more advanced data structures such as graphs, trees, KMP algorithm, etc and that wasn't ne...

My TIME TRAVEL

ABDUDE My T ime Travel JUNE 2019 I started learning python, as it was the most famous language at that time. I learned the basics through a course named learn python with Mosh on youtube, a 6 hr long video, took 30 days to complete as I was not too efficient. AUGUST 2019 The College started. Got busy with my college studies and some other stuff(admin block unnecessary shit) went ...