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

SDE - 2

Credit Suisse
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, OOPs Concepts, Java Concepts, Behavioral Questions
Tip
Tip

Tip 1 : Prepare well on the OOPs concepts (Abstraction, Encapsulation, Polymorphism etc..)
Tip 2 : The DSA round can have at max LeetCode medium questions. So preparing 100-150 questions should be enough over there.
Tip 3 : Be confident and have multiple ways to approach a problem that will make a you solid person.
Tip 4 : Be good at the language of your choice for example in java how would you refactor a code using functional programming as opposed to procedural programming.
Tip 5 : Have 1-2 projects done related to the role that you are applying for
Tip 6 : Review your resume for grammatical errors and use action verbs while describing your projects.

Application process
Where: Referral
Eligibility: No Criteria
Resume Tip
Resume tip

Tip 1 : Check your resume for grammatical mistakes.
Tip 2 : Share the github link for your projects.
Tip 3 : Share the live link for your project.
Tip 4 : Use actions verbs to describe the project like Built, Created etc..
Tip 5 : Segregate the skills based on how proficient you are with them (Beginner, Intermediate, Advanced)

Interview rounds

01
Round
Easy
Face to Face
Duration60 Minutes
Interview date1 Jan 2021
Coding problem1

1. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
GE (General Electric)Tata 1mgFreshworks

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

For iteration, we create a ListNode rev to keep track of what we have reversed otherwise we would lose it. Then we iterate linked list and make head point to the current node. We change a -> to <- by calling head.next = rev, update rev by calling rev = head, move to next node by calling head = head.next. To save a temporary variable, we could assign these variables in one line, but head.next and rev should be updated before head is updated otherwise direction would not be reversed and rev would keep pointing to itself.
For example, 1->2->3, 1 is current node head, what we have reversed rev is None, 2 is head.next. Calling head.next = rev leads to None<-1. Calling head = head.next concurrently to make head pointing to 2->3. Updating rev as 1->None. And in next iteration, we will change 2->3 to 1<-2 and keep changing -> to <- so on so forth.

Try solving now
02
Round
Medium
Face to Face
Duration60 Minutes
Interview date1 Jan 2021
Coding problem2

1. Clone Linked List with Random Pointer

Easy
10m average time
90% success
0/40
Asked in companies
MicrosoftUrban Company (UrbanClap)Amazon

Given a linked list having two pointers in each node. The first one points to the next node of the list, however, the other pointer is random and can point to any node of the list or null. The task is to create a deep copy of the given linked list and return its head. We will validate whether the linked list is a copy of the original linked list or not.

A deep copy of a Linked List means we do not copy the references of the nodes of the original Linked List rather for each node in the original Linked List, a new node is created.

For example,

example

Random pointers are shown in red and next pointers in black.

Problem approach

I didn't know the actual solution to this problem at that time.
I used a dictionary to maintain the relation between the new ListNode and the old ListNode
In a loop I create new nodes against all the old nodes in the dictionary
In the 2nd loop I created the pointers between new nodes in the dictionary.

Try solving now

2. Level Order Traversal

Easy
15m average time
85% success
0/40
Asked in companies
MicrosoftDeutsche BankFlipkart

You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.

For example:
For the given binary tree

Example

The level order traversal will be {1,2,3,4,5,6,7}.
Problem approach

Maintain a queue and the level at which you are currently at and then keep on adding the nodes corresponding to the level in the answers list.

Try solving now
03
Round
Medium
Face to Face
Duration60 Minutes
Interview date1 Jan 2021
Coding problem2

1. OOPS Question

I was provided some tax calculation system. Now how would I extend the functionality to calculate some new kind of tax?

Problem approach

Tip 1 : Learn the OOPs concepts well
Tip 2 : Focus more on how could you apply different OOPs concepts
Tip 3 : Be aware of the SOLID principles

2. OOPS Questions

What's your understanding about Abstraction?
Where would you use polymorphism?
Write the singleton class?

Problem approach

Tip 1 : Learn the OOPs concepts well
Tip 2 : Focus more on how could you apply different OOPs concepts
Tip 3 : Be aware of the SOLID principles

04
Round
Medium
HR Round
Duration30 Minutes
Interview date1 Jan 2021
Coding problem0

Basic HR Questions were asked.

Here's your problem of the day

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

Skill covered: Programming

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
SDE - 1
4 rounds | 6 problems
Interviewed by Credit Suisse
736 views
0 comments
0 upvotes
SDE - 1
3 rounds | 3 problems
Interviewed by Credit Suisse
867 views
0 comments
0 upvotes
SDE - 1
4 rounds | 4 problems
Interviewed by Credit Suisse
601 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
1409 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
25139 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
5505 views
0 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
3959 views
0 comments
0 upvotes