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

SDE - 1

HSBC
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Embarking on my coding odyssey during my first year of college was both exhilarating and challenging. Initially grappling with the syntax of languages like Python and Java, I gradually embraced the logic and problem-solving aspects of programming. Each milestone brought a sense of accomplishment as I delved into data structures, algorithms, and web development. Collaborating on projects with peers honed my teamwork and communication skills. Facing bugs and errors became opportunities for learning, fostering resilience. By the end of the initial phase of my coding journey, I had transformed from a novice to a more confident programmer, eager to explore the vast realms of software development that lay ahead.
Application story
The company conducted an initial online assessment followed by three rounds of interviews during their campus placement visit. The interview process consisted of two technical rounds and one round focused on human resources.
Why selected/rejected for the role?
I secured the position due to my ability to comprehend and accurately respond to all the challenges presented during the selection process.
Preparation
Duration: 3 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Regularly participate in coding challenges on platforms like CodeStudio to enhance problem-solving skills and gain exposure to diverse coding scenarios.

Tip 2: Engage in collaborative coding projects that focus on real-world applications. This demonstrates practical coding abilities and enhances teamwork and project management skills, making you more appealing to potential employers.

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

Tip 1: Highlight quantifiable achievements and results in your resume, showcasing the impact of your contributions in previous roles, such as increased efficiency, cost savings, or successful project outcomes.

Tip 2: Tailor your resume for each job application, emphasizing relevant skills and experiences that align with the position's specific requirements. This customization enhances your chances of standing out to recruiters and aligning with the role's needs.

Interview rounds

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

1. Maximum Product Subarray

Moderate
25m average time
75% success
0/80
Asked in companies
InnovaccerAmazonMicrosoft

You are given an array “arr'' of integers. Your task is to find the contiguous subarray within the array which has the largest product of its elements. You have to report this maximum product.

An array c is a subarray of array d if c can be obtained from d by deletion of several elements from the beginning and several elements from the end.

For e.g.- The non-empty subarrays of an array [1,2,3] will be- [1],[2],[3],[1,2],[2,3],[1,2,3]. 
For Example:
If arr = {-3,4,5}.
All the possible non-empty contiguous subarrays of “arr” are {-3}, {4}, {5}, {-3,4}, {4,5} and {-3,4,5}.
The product of these subarrays are -3, 4, 5, -12, 20 and -60 respectively.
The maximum product is 20. Hence, the answer is 20.
Follow Up:
Can you solve this in linear time and constant space complexity?
Problem approach

Given an array "arr" of integers, your objective is to identify the contiguous subarray within the array that yields the maximum product of its elements. Report this maximum product.

Try solving now

2. K Most Frequent Words

Moderate
10m average time
85% success
0/80
Asked in companies
WalmartOracleFacebook

You are given an Integer array ‘ARR’ and an Integer ‘K’.


Your task is to find the ‘K’ most frequent elements in ‘ARR’. Return the elements in any order.


For Example:

You are given ‘ARR’ = {1, 2, 2, 3, 3} and ‘K’ = 2. 

The answer will {2, 3} as 2 and 3 are the elements occurring most times.
Problem approach

You have been given an array/list 'WORDS' of 'N' non-empty words, and an integer 'K'. Your task is to return the 'K' most frequent words sorted by their frequency from highest to lowest.

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

1. Right View

Moderate
35m average time
65% success
0/80
Asked in companies
AdobeSAP LabsRazorpay

You have been given a Binary Tree of integers.

Your task is to print the Right view of it.

The right view of a Binary Tree is a set of nodes visible when the tree is viewed from the Right side and the nodes are printed from top to bottom order.

Problem approach

You have been given a Binary Tree of integers.

Your task is to print the Right view of it.
The right view of a Binary Tree is a set of nodes visible when the tree is viewed from the Right side and the nodes are printed from top to bottom order.

Try solving now

2. Count All Subarrays With Given Sum

Moderate
15m average time
85% success
0/80
Asked in companies
SAP LabsIBMHSBC

You are given an integer array 'arr' of size 'N' and an integer 'K'.

Your task is to find the total number of subarrays of the given array whose sum of elements is equal to k.

A subarray is defined as a contiguous block of elements in the array.

Example:
Input: ‘N’ = 4, ‘arr’ = [3, 1, 2, 4], 'K' = 6

Output: 2

Explanation: The subarrays that sum up to '6' are: [3, 1, 2], and [2, 4].
Problem approach

Your task is to find the total number of subarrays of the given array whose sum of elements is equal to k.
A subarray is defined as a contiguous block of elements in the array.

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

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by HSBC
1688 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by HSBC
1992 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by HSBC
793 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by HSBC
1692 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6262 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
2160 views
0 comments
0 upvotes