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]...
Log inRegister + 2 How to solve the given problem? 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 the possible solution. As far as i can see this is an optim...
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...
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.
CodeChefL COMPILER ◌Leetcode: Interview Practice Leetcode: Practice Stacks Back To Top ⬆️ 3.5 Queue Similar to a Stack but with distinct characteristics, the Queue is another linear data structure. A Queue operates on the principle of First In First Out (FIFO) in its individual operati...
In competitions, participants don't inspect your code; instead, they want you to pass every predetermined test scenario. You shouldn't worry if the competition misses a test case because sometimes for really complicated problems, all the test cases can't be expected. ...
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...
yash_daga→Invitation to CodeChef Starters 142(Rated till 5-Stars) — 10th July bgopc→Beautiful problems I enjoyed solving DmitryKlenov→Codeforces Beta Round #5 - Tutorial ApaarGulati→How do i find the error? StellarSpecter→Need help ...
In the recent snackdown round A qualifier, there was a problem I could not figure out.↵↵Link:↵https://www.codechef.com/SNCK1A19/problems/AVGMAT↵↵From skimming the solutions and from making my own observations I have realized the following:↵↵- Most solution use some type...
Do CodeChef usually replies for problem proposals? I didn't get any response (approved or disapproved) for both of my two problems. This is important for me so I can use those problems in other contests if they are disapproved. → Reply krismaz 7 years ago, # | +21 HackerRank hap...