Tip 1 : Practice atleast 250 interview-centric DSA problems.
Tip 2 : Do atleast 2 application-based projects.
Tip 3 : Read interview experiences of the organisation you are preparing for.
Tip 1 : Have atleast 2 application based projects on resume.
Tip 2 : Mention coding profiles like GFG, Leetcode, Codestudio, Codechef.
This round was held in afternoon.
Duartion : 1 hour
Consisted 25 aptitude ability and 15 CS fundamental objective problems.
There was negative marking for wrong answers.
How do we measure forty-five minutes using two identical wires, each of which takes an hour to burn? We have matchsticks with us. The wires burn non-uniformly.
An employee works for an employer for 7 days. The employer has a gold rod of 7 units. How does the employer pay to the employee, so that the number of employee’s rod units increases by one at the end of each day? The employer can make at most 2 cuts in the rod.
You have 5 jars of pills. Each pill weighs 10 grams, except for contaminated pills contained in one jar, where each pill weighs 9 grams. Given a scale, how could you tell which jar had the contaminated pills in just one measurement?
There are 1000 wine bottles. One of the bottles contains poisoned wine. A rat dies after one hour of drinking the poisoned wine. How many minimum rats are needed to figure out which bottle contains poison in hour.
There are 5 pirates, they must decide how to distribute 100 gold coins among them. The pirates have seniority levels, the senior-most is A, then B, then C, then D, and finally the junior-most is E.
Rules of distribution are:
The most senior pirate proposes a distribution of coins.
All pirates vote on whether to accept the distribution.
The distribution is approved if at least half of the pirates agree (including the proposer)
If the distribution is accepted, the coins are disbursed and the game ends.
If not, the proposer is thrown and dies, and the next most senior pirate makes a new proposal to begin the system again.
In case of a tie vote, the proposer can have the casting vote
Rules every pirate follows.
Every pirate wants to survive
Given survival, each pirate wants to maximize the number of gold coins he receives.
It was in evening.
It consisted of 3 DSA problems.






The answer could be very large, output answer %(10 ^ 9 + 7).
There are n – 1 way for element 0 (this explains multiplication with n – 1).
Let 0 be placed at index i. There are now two possibilities, depending on whether or not element i is placed at 0 in return.
i is placed at 0: This case is equivalent to solving the problem for n-2 elements as two elements have just swapped their positions.
i is not placed at 0: This case is equivalent to solving the problem for n-1 elements as now there are n-1 elements, n-1 positions and every element has n-2 choices



If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.
Initially, reverse the individual words of the given string one by one, for the above example, after reversing individual words the string should be “i ekil siht margorp yrev hcum”.
Reverse the whole string from start to end to get the desired output “much very program this like i” in the above example.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?