### mkmeden's blog

By mkmeden, history, 13 months ago,

This is the task and at the first look its obvious that its a standard dijkstra problem, But due to some reason my code is giving TLE for 2 large test cases which I am sure the standard dijkstra code should be able to handle. Can someone take a look at this and provide some insight.

code
• 0

By mkmeden, history, 14 months ago,

Can some one help me undertand why this solution is giving a TLE for a particular test case.

Solution :

Code
• 0

By mkmeden, history, 14 months ago,

https://www.hackerrank.com/challenges/cloudy-day/problem

Stuck for 2 hours

can someone explain how to solve this question in a simpler way.Couldnt understand the editorial.

• -6

By mkmeden, history, 14 months ago,

In the standard coin exchange problem were each denominations are available infinite times and we need to find the number of ways in which we can form the target value :

for a recursive function int fun(int n , int val) and the arr contains the denominations.

this is how the possible cases for the recursive calls should be .

Spoiler

But before seeing the solution I thought it like this instead ( definitely wrong )

Spoiler

I considered one more case too, where we take the coin and move to the next index . I cant find a reasoning why this is wrong logically .

Might be a stupid doubt but cant get over it just like that. Can anyone tell me why is it wrong to consider that case.

Thanks

• +1

By mkmeden, history, 15 months ago,

Can someone tell me whats wrong with my code

https://www.hackerrank.com/challenges/xor-and-sum/problem

Code
• +8

By mkmeden, history, 15 months ago,

https://www.hackerrank.com/challenges/misere-nim-1/problem?isFullScreen=false Trying for 3 hours straight. Can someone explain how to solve this problem.

• 0

By mkmeden, history, 15 months ago,

Can someone please explain why my code is not passing some test cases.

Code
• +3

By mkmeden, history, 15 months ago,

https://www.hackerrank.com/challenges/tutzki-and-lcs/problem

I ve been trying to solve this for hours and could'nt find any understandable online solution, Can anyone explain the logic and code behind this problem.

• +6

By mkmeden, history, 20 months ago,

https://codeforces.com/problemset/submission/377/143943114

Can anyone help me why i am getting TLE in this code at the 10th TC.

• +6

By mkmeden, history, 21 month(s) ago,

Hello,

https://codeforces.com/problemset/submission/1335/138670454

Can anyone explain why my submission is giving a RUNTIME_ERROR exit code: 2147483647, checker exit code: 0, verdict: RUNTIME_ERROR?

It works correctly on my linux terminal.

• 0