int fun(int a) { int i=0; if(a>99) i++; return a-12; return fun(fun(a)) } int main() { printf("%d", fun(69); printf("%d",i); }
Software Engineer V Interview Questions
666,374 software engineer v interview questions shared by candidates
Determine the sum of all prime numbers less than 1000.
Difference between == & === ?
Find the kth largest element in an array
What is the most efficient way to swap the numbers from left to right? For example: 1234567 if giving the k = 3, the result should be 4567123.
About arrays sorting
You have two strings and a lighter. Each string takes one hour to burn, but they burn at variable rates. So for example, after 30 minutes, you have no idea how much of the string has burnt. Using just the two strings and the lighter, determine when exactly 45 minutes have passed.
What Classes you use if you fetch the data from database?
2. How will you take out 4 litres of water in a pot from the sea just by having two bottles of 3L and 5L of random shapes?
In managerial Round write a method for finding substring which has specific given length
Viewing 2401 - 2410 interview questions