works fine on online ide for custom input and my own ide for sample cases…
somebody pls help me out
Guyz I am pretty much new to coding…I mostly am only able to apply brute force on questions! Can anyone suggest me a good book for Data Structures and Algorithms pls?
P.S: I need a book not a soft copy or websites.
Thanks for the help
I will say rather start from geeksforgeeks.org , most of the books will deal only with basics and you will need more than it. Also, give a search on forums, this question regarding books and notes are answered alot before.
Badges can be taken as “trophies” you get for some achievement. No, they dont affect karma in any way.
When will the editorials of JUNE17 arrive.
Why does codechef no longer upload the editorials of contests on time ? Its been 3 days the long challenge has ended and no editorial has arrived yet!!
December long challenge had no editorials and I still struggle with this and this problems from that contest. Then February challenge again had no editorials and the last 2 questions were really nice and are still left for me to upsolve. Then May had no editorials of last 4 questions and now June has no editorials yet. Why not create editorials before the contest ? When will the editorials of these contests arrive ?
You could have created a Q yourself…You want me to convert it into a question??
TBH, seeing the pattern, i dont think the editorials will come out…But i see that community has been really helpful this time. Alot of questions are discussed actively and excellent approaches were given. You can refer those till then.
What if the foo() function leads to true value, then it will print the reqiired result and return true which fails the condition given in main() and the program ends. Basically i want my code to print the result when foo() returns true, else continue to find a result if it return false. Please suggest some way to correct it.
Where are you getting this bug? If this would had been the case, you wouldnt get WA after 0.81s, but instantly at 0.00sec. Are you inserting input in correct format? In JAVA, inout is sensitivive to extra spaces and extra lines.
Thanks man
also i have tried most trivial changes as well…still it runs at 0.11 millisec at best!
can anyone please tell me as to how could I do IPC train of July’17 Long using lazy propagation.? Is this even possible?
Can you please explain the logic of calculator for passing the 2nd test case as it is bothering me?
Is the editorial unclear to you? If yes then i will elaborate, else its fine ^^
sorry… editorial wasn’t uploaded when i asked the question and thanks for the reply, i then checked it and understood the editorial.
Check the editorial once, if things are not clear i will explain. No, lazy propagation was not needed there.
I need karma to upvote guys, please help me out here.
You have to earn that privilege by participating in discuss forums.
You can, however, “accept” answers of your question to award yourself 2 karma and answering user 15 karma (it works same as upvote but is only available to the person who asked the question)
where to get a good understanding on DP concept i.e by seeing the question I need to figure out the states and stuff like that?
yeah did some problems but not sure of dp for tougher problems