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

SDE - Intern

HSBC
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Embarking on my B.Tech journey at IGDTUW was a thrilling experience that began with an orientation day buzzing with excitement. As I navigated through classes, I discovered the fascinating world of coding. It all started with attending coding clubs and workshops, and before long, I was hooked. Balancing academics with extracurricular activities became my norm, as I joined robotics and coding societies and immersed myself in cultural events.
Application story
This company visited my campus for placement opportunities. We applied for this opportunity through their career portal.
Why selected/rejected for the role?
I was rejected because I was not able to answer all the coding questions that were asked during the interview.
Preparation
Duration: 4 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Practice regularly on coding platforms and websites.

Tip 2: Consistent coding practice is crucial for improving your problem-solving skills and familiarity with various algorithms and data structures.

Tip 3: Set aside dedicated time each day to solve coding challenges on platforms like Code Studio.

Tip 4: This consistent practice will enhance your coding proficiency and build confidence.

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

Tip 1: Have some projects on your resume. 

Tip 2: Do not put false information on your resume.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date17 Oct 2022
Coding problem2

1. Sort Elements By Frequency

Easy
15m average time
85% success
0/40
Asked in companies
HSBCCIS - Cyber InfrastructureOracle

You are given a list of a repeated set of integers. Your task for the problem is to return a list of the given elements in decreasing sorted order of their frequency of repetition in the given list with the element with the highest frequency of repetition first and so on.

Note :
If two numbers have the same frequency then keep the one that was present before the other in the original given list (array) first.
For Example :
Input:  arr[] = {2, 5, 2, 8, 5, 6, 8, 8}
Output: arr[] = {8, 8, 8, 2, 2, 5, 5, 6}

Explanation :
When you sort the array based on the decreasing order of the frequency of repetition of integers in the original array, 
you’ll find that the element ‘8’ is the integer with the most repeated values therefore it would be arranged first after which since both 2 and 5 have the same number of repeated 
values in the original array but since the 2 arrived first so we will first arrange 2 and then 5 in our resultant array, while would be the last element after sorting here.
Problem approach

You are given a list of a repeated set of integers. Your task for the problem is to return a list of the given elements in decreasing sorted order of their frequency of repetition in the given list with the element with the highest frequency of repetition first and so on.

Try solving now

2. Compress the String

Moderate
25m average time
60% success
0/80
Asked in companies
MathworksHSBCPayPal

Ninja has been given a program to do basic string compression. For a character that is consecutively repeated more than once, he needs to replace the consecutive duplicate occurrences with the count of repetitions.

Example:

If a string has 'x' repeated 5 times, replace this "xxxxx" with "x5".

The string is compressed only when the repeated character count is more than 1.

Note :

The consecutive count of every character in the input string is less than or equal to 9.
Problem approach

For a character that is consecutively repeated more than once, he needs to replace the consecutive duplicate occurrences with the count of repetitions.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date18 Oct 2022
Coding problem2

1. Duplicate In Array

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

You are given an array ‘ARR’ of size ‘N’ containing each number between 1 and ‘N’ - 1 at least once. There is a single integer value that is present in the array twice. Your task is to find the duplicate integer value present in the array.

For example:

Consider ARR = [1, 2, 3, 4, 4], the duplicate integer value present in the array is 4. Hence, the answer is 4 in this case.
Note :
A duplicate number is always present in the given array.
Problem approach

You are given an array ‘ARR’ of size ‘N’ containing each number between 1 and ‘N’ - 1 at least once. There is a single integer value that is present in the array twice. Your task is to find the duplicate integer value present in the array.

Try solving now

2. Find prime numbers

Easy
15m average time
80% success
0/40
Asked in companies
HSBCOptumIBM

You are given a positive integer ‘N’. Your task is to print all prime numbers less than or equal to N.

Note: A prime number is a natural number that is divisible only by 1 and itself. Example - 2, 3, 17, etc.

You can assume that the value of N will always be greater than 1. So, the answer will always exist.

Problem approach

You are given a positive integer ‘N’. Your task is to print all prime numbers less than or equal to N.
Note: A prime number is a natural number that is divisible only by 1 and itself. Example - 2, 3, 17, etc.
You can assume that the value of N will always be greater than 1. So, the answer will always exist.

Try solving now

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 remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
Software Developer
3 rounds | 7 problems
Interviewed by HSBC
1306 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by HSBC
1722 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by HSBC
1465 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by HSBC
810 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3738 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2683 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
2348 views
0 comments
0 upvotes