You have a single branch of a GIT or SVN repository. At some commit number G, the code in the repo worked (G = good commit). At a later commit number B, you noticed that the code was broken (B = bad). The code may have become broken anytime at or before B, but after G. B was just the first time that you noticed the code was broken. Both G and B are positive integers and G < B. You have access to a function.......bool isCommitGood(integer)......... that takes a commit number and tells you whether the code at that commit worked or was broken. Write code to find the most recent working commit (i.e., the number/index of the last good commit before the code became broken).
Grad Interview Questions
7,381 grad interview questions shared by candidates
What is one thing that you used to believe but no longer do?
What do you do now
What would you do if you had all the money in the world to open this restaurant with your favorite cuisine? What would it look like.
Who would you see first, patient reporting pain, patient wanting to be repositioned or a patient that was verbal is no longer verbal
Q1: Ciphering and Deciphering text like Encryption and Decryption of a string with given key value pairs. Q2: Requirements were very unclear. Q3: Create a game with 10X10 block loke battleship with 2 player functionality.
Tell me what you know about RWJ and what made you want to work with us?
design a hit counter leetcode
Describe how you'd start off a head to toe assessment?
What if you had an order to do a Neuro assessment on your patient every 4 hours but when you go the patient wants nothing to do with getting assessed, he's depressed and wants to be alone but your doctor is pushing you to get that assessment done and he needs it now but your patient keeps refusing, what would you do next?
Viewing 141 - 150 interview questions