Geeksfor geeks hiring exam

somethings wrong in the 2nd problem

I think they want the ans by specific % operation which is not specified :sweat_smile:

% operation?? nowhere it has been spwcified :frowning:

100 2 3 100

will be 100 1 1 100

2 Likes

kuch huaaa?? anyone ? ? ?

hnn ye ho rhaa h

Request Queued.
Ready for evaluation
from 5 minutes

Please Reload Page And Try Again :rofl::rofl::rofl::rofl:

2 Likes

Question 2 DP tha. :slight_smile:

Hua kya ye bolo…

Me :rofl::rofl:

anybody got correct answer using python3?
My confirmed correct python soln. gives WA everytime, which is frustrating.

Na bhai :pensive: (20 chars)

Which one ? (20 chars)

anyone solved q2 … pls share approach

Present on net simple dp…but fails…why

For both. Solutions are correct because for first one, you just have to count max(xdist,ydist) for consecutive points and add them

Second one is a very standard dp problem one practices while learning DP, there’s no reinventing the wheel there

Have u did in contest ???

1 Like

Post pics of questions if you have…I want to see them…

1 Like

Looks quite like Sherlock and Cost.

its pretty much the same question… i solved it earlier on hackerrank… whereas it was giving wa when i submitted the same solution here

1 Like

A Good DP problem :heart: