Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Citi Bank interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Citi Bank
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Algorithm, DBMS, Networking,Operating Systems
Tip
Tip

Tip 1 : Practice questions on DS Algorithm ( array/string/DP/trees)
Tip 2 : Prepare SQL queries and normalization.

Application process
Where: Campus
Eligibility: Above 7
Resume Tip
Resume tip

Tip 1 : Simple and clean
Tip 2 : Emphasize on internship

Interview rounds

01
Round
Medium
Online Coding Interview
Duration40 Minutes
Interview date1 Mar 2020
Coding problem1

1. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
GoogleGrabSAP Labs

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Problem approach

The idea is to traverse every array element and find the highest bars on the left and right sides. Take the smaller of two heights. The difference between the smaller height and height of the current element is the amount of water that can be stored in this array element.

To make this efficient one must pre-compute the highest bar on the left and right of every bar in linear time. Then use these pre-computed values to find the amount of water in every array element.

Try solving now
02
Round
Easy
Face to Face
Duration40 Minutes
Interview date10 Mar 2022
Coding problem2

Asked questions about stack queue LL and strings

1. Reverse Linked List

Easy
15m average time
85% success
0/40
Asked in companies
Citi BankFlipkartIBM


Example:

Input:
2 4 5 -1

Output:
5 4 2 -1

Explanation: 2->4->5 is the initial linked list. If we reverse this, we get 5->4->2.
Problem approach

1) Divide the list in two parts - first node and 
rest of the linked list.
2) Call reverse for the rest of the linked list.
3) Link rest to first.
4) Fix head pointer

Try solving now

2. Operating System Question

How does paging works?

03
Round
Easy
HR Round
Duration15 Minutes
Interview date11 Mar 2022
Coding problem0

It was an easy round with some basic HR Questions.

Here's your problem of the day

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

Skill covered: Programming

How do you write a single-line comment in C++?

Choose another skill to practice
Start a Discussion
Similar interview experiences
SDE - 1
4 rounds | 3 problems
Interviewed by Citi Bank
2326 views
0 comments
0 upvotes
SDE - 1
3 rounds | 3 problems
Interviewed by Citi Bank
2250 views
0 comments
0 upvotes
Technology Analyst
3 rounds | 4 problems
Interviewed by Citi Bank
761 views
0 comments
0 upvotes
Product Engineer
3 rounds | 5 problems
Interviewed by Squadstack
1490 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
1 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
5656 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
4899 views
3 comments
0 upvotes