A duck that is being chased by a fox saves itself by sitting at the center of circular pond of radius r. The duck can fly from land but cannot fly from the water. Furthermore, the fox cannot swim. The fox is four times faster than the duck. Assuming that the duck and fox are perfectly smart, is it possible for the duck to ever reach the edge of the pond and fly away to its escape from the ground
Software Engineer Interview Questions
467,163 software engineer interview questions shared by candidates
Given m cross n matrix, in how many ways can you reach from one end to the other
If you good at algorithm/data structure you can crack it.
1 Jug with 24 litres water is to be split into 3 Jugs, one being the 24 litres, other one being 12 litres and last one 5 litres in such a way that 24 litres Jug contains 12 Litre. You can only use the water in the 24 litre jug, nothing more nothing less.
Find any 3 consecutive similar numbers in an array
How to initialize a string
How to get the k smallest element in O(klogk) time
Given a string, that contains special character together with alphabets (‘a’ to ‘z’ and ‘A’ to ‘Z’), reverse the string in a way that special characters are not affected. Examples: Input: str = "a,b$c" Output: str = "c,b$a" Note that $ and , are not moved anywhere. Only subsequence "abc" is reversed Input: str = "Ab,c,de!$" Output: str = "ed,c,bA!$"
What is difference between Echo and Print??
How can you tell if a linked list is circular (goes on forever because it connects to a previous node)?
Viewing 1761 - 1770 interview questions