problem link :http://www.codechef.com/SMHT2014/problems/SMHTD Thanks!!! I'd try to do a binary search on answer and check correctness in the following way: iterate an array from left to right and if you see some element a_i such that a[i] <= a[i-1], then you assign a[i]...
This question was asked in hackwithinfy, I could not approach this problem anyhow, can anyone tell me the optimal approach to solve these type of problems and the solution of this specific problem. Here is the question :part1part2 Say you're merging two nodes a and b, into res. res.t...
I have been trying to solve the problem https://www.codechef.com/ZCOPRAC/problems/ZCO15001 on codechef, but I m completely failing the logics, i just couldn't make out
Discover How to Start Coding and the role and importance of coding. Learn to understand the various platforms offering opportunities to learn coding and defined job roles and salaries one can expect.
Now, let's delve into an interesting and crucial topic. The main goal of using DSA is to solve problems effectively and efficiently. How do you assess if your program is efficient? This is where complexities come in, and there are two types: ...
Solve questions to male your concepts strong. Do data structure and algorithm. Learn it very sincerely. Practise questions for the same on leetcode, codechef and give contests. Learn one development for an additional edge to your resume. Make projects. If you complete all this then you...
Maybe you could try sending it to the folks at CodeChef for a long contest problem proposal. → Reply TooNewbie 7 years ago, # ^ | +5 Do CodeChef usually replies for problem proposals? I didn't get any response (approved or disapproved) for both of my two problems. This is ...
Great, go and solve them as long as they are challenging for you. Or you want to solve every problem from some problemset (still can be a challenge for you). Or you want to upsolve a whole round (still can be a challenge for you). Or you want to have more problems solved on ...
To get straight to the point. I know the basics and implementation of segment tree but I can't solve problems using it. Because I don't know its applications and advantages (Practical ones). So can anyone have a list of problems going from easy to a medium level so that I can try ...
How many contests do you simulate per week? Do they enter codeforces, codechef, atcoder? Clearly getting a silver medal is not easy but we want to try. We will be grateful for your support. Best regards The one piece of advice I can give to you is you have to make sure that the ...