Credit Suisse interview experience Real time questions & tips from candidates to crack your interview

ENO

Credit Suisse
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Structures, Algorithms, System Design, Aptitude, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Please go through as many puzzles as you can from How to ace... book. Also there is an app called water logic which might be useful.

Application process
Where: Campus
Eligibility: Above 75% aggregate
Resume Tip
Resume tip

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Interview rounds

01
Round
Easy
Face to Face
Duration60 minutes
Interview date2 Jul 2015
Coding problem3

The first round was the tech round in which firstly I was asked about things on my resume (e.g. I had done a course in Embedded Systems, so the interviewer asked me in which language I was made to code etc.) Then, I was asked a programming question and some OOPS based questions.

1. Find Missing Number In String

Moderate
15m average time
85% success
0/80
Asked in companies
AdobeOLX GroupAmazon

You had a sequence of consecutive nonnegative integers. You appended all integers at the end of each other to form a string ‘S’ without any separators. While appending each integer in a string, you forgot to append exactly one integer from the sequence. Now all the integers from a string and you don’t know which integer you have missed.

For example sequence 11, 12, 13 may form a string (without any separators) “1113” if you miss 12.

Your task is to find the missing number in the string such that it is possible to obtain a sequence of consecutive non-negative integers from the given string. If more than one missing integer is present or all the integers are already present or if the string is not valid then the answer will be -1 for all such cases.

Note:
1. The string consists of only digits 0 to 9.
2. The numbers will have no more than six digits. 
Problem approach

XOR approach can be used to solve this question in an efficient manner. The following property of XOR can be used :
1. If x1^x2^…xn = a and x1^x2^..xn-1 = b , then a^b = xn
Steps:
1. Declare two variables a= 0 and b = 0
2. Calculate the xor of numbers from 1 to n and store them in a i.e. 1^2^…n = a. 
3. Now traverse the array from start to end.
4. For every index i update b as b = b ^ arr[i]
5. Return the missing number as a ^ b. 
Time Complexity : O(N)
Space complexity : O(1)

Try solving now

2. OOPS Question

Explain Operator Overloading.

Problem approach

To overload an operator, we use a special operator function. We define the function inside the class or structure whose objects/variables we want the overloaded operator to work with.

Program overloading << operator :

#include
#include
class Time
{
int hr, min, sec;
public:
// default constructor
Time()
{
hr=0, min=0; sec=0;
}

// overloaded constructor
Time(int h, int m, int s)
{
hr=h, min=m; sec=s;
}

// overloading '<<' operator
friend ostream& operator << (ostream &out, Time &tm); 
};

// define the overloaded function
ostream& operator << (ostream &out, Time &tm)
{
out << "Time is: " << tm.hr << " hour : " << tm.min << " min : " << tm.sec << " sec";
return out;
}

int main()
{
Time tm(3,15,45);
cout << tm;
return 0;
}

3. OOPS Question

What is Polymorphism in Java ?

Problem approach

The word polymorphism means having many forms. In Java polymorphism is mainly divided into two types: 
Compile-time Polymorphism
Runtime Polymorphism

Type 1: Compile-time polymorphism : It is also known as static polymorphism. This type of polymorphism is achieved by function overloading or operator overloading. But Java doesn’t support the Operator Overloading.

Method Overloading: When there are multiple functions with the same name but different parameters then these functions are said to be overloaded. Functions can be overloaded by change in the number of arguments or/and a change in the type of arguments.

Type 2: Runtime polymorphism : 
It is also known as Dynamic Method Dispatch. It is a process in which a function call to the overridden method is resolved at Runtime. This type of polymorphism is achieved by Method Overriding. Method overriding, on the other hand, occurs when a derived class has a definition for one of the member functions of the base class. That base function is said to be overridden.

02
Round
Easy
Face to Face
Duration60 minutes
Interview date2 Jul 2015
Coding problem3

Technical Interview round with oops based questions. Design based questions and puzzle was also asked.

1. OOPS Question

What is multi threading in Java ?

Problem approach

Multithreading in Java is a process of executing multiple threads simultaneously.
A thread is a lightweight sub-process, the smallest unit of processing. Multiprocessing and multithreading, both are used to achieve multitasking.

2. Puzzle

There are 3 ants sitting on three corners of a triangle. All ants randomly pick a direction and start moving along edge of the triangle. What is the probability that any two ants collide?

Problem approach

Collision doesn’t happen only in following two cases : 
1) All ants move in counterclockwise direction.
2) All ants move in clockwise direction : Since every ant has two choices (pick either of two edges going through the corner on which ant is initially sitting), there are total 23 possibilities.
Out of 23 possibilities, only 2 don’t cause collision. So, the probability of collision is 6/8 and the probability of non-collision is 2/8.

3. System Design Question

Design a lift with minimum amount of inconvenience on the part of user.

Problem approach

Tip 1: Before you jump into the solution always clarify all the assumptions you’re making at the beginning of the interview. Ask questions to identify the scope of the system. This will clear the initial doubt, and you will get to know what are the specific detail interviewer wants to consider in this service.
Tip 2: Design your structure and functions according to the requirements and try to convey your thoughts properly to the interviewer so that you do not mess up while implementing the idea .

03
Round
Easy
HR Round
Duration30 minutes
Interview date2 Jul 2015
Coding problem1

HR round with typical behavioral problems.

1. Basic HR Questions

1. What are your hobbies?
2. What would you do if your colleague behaves in a way which is against your principles?
3. What are your hobbies?
4. Which is the happiest day of your life?
5. What are your strengths and weaknesses?
6. How are you trying to overcome your weaknesses?
7. Questions about family
8. What is the one thing in you that makes you different and distinguishable from your classmates?
9. Are your parents okay if we post you in Pune?

Problem approach

Tip 1 : The cross questioning can go intense some time, think before you speak.
Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.
Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round, like what are the projects currently the company is investing, which team you are mentoring. How all is the work environment etc.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
ENO
3 rounds | 10 problems
Interviewed by Credit Suisse
721 views
0 comments
0 upvotes
ENO
3 rounds | 7 problems
Interviewed by Credit Suisse
545 views
0 comments
0 upvotes
ENO
3 rounds | 3 problems
Interviewed by Credit Suisse
658 views
0 comments
0 upvotes
ENO
4 rounds | 4 problems
Interviewed by Credit Suisse
832 views
0 comments
0 upvotes