Chargebee Interview Experience | Set 2 (On Campus)

1. Given an array and a set of operations on it, perform those in sequence to the array.
Example : given array : 12345
Operations to be performed in order : L1,R2,R1,L3
L1 : shift left once,R2 : shift right twice…etc

2. Given an array of size n of integer type containing the integers from 1 to n (both including), print how many times each integer is repeated. There is no rule that every integer in the range 1 to n will be present in the array. Solve the problem using only one additional variable.
Example : n= 5
Array : 12341
Answer : 1 – 2 times
2 – 1 time
3 – 1 time
4 – 1 time

3. Print this pattern

* * * * *
* * *
*
* * *
* * * * *

4. A code is given which prints the sum of even and odd numbers in the given set of numbers. Identify the error and rectify it.



5. Given two integers m and n,write code for m power n without using exponent operation.

6. Doubly linked list insertion and deletion.

7. Measure 9 min using two 4 min and 7 min sand glass.

8. https://www.geeksforgeeks.org/the-celebrity-problem/

9. 2 DBMS queries.(don’t remember)

10.http://www.mathsisfun.com/puzzles/the-fly-and-the-trains-solution.html

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above

Write your Interview Experience or mail it to contribute@geeksforgeeks.org

My Personal Notes arrow_drop_up
Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.