0 day streak

HSBC coding interview questions

Banking Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +68 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Amazon, Microsoft +59 Solve
Climbing Stairs1D DP Easy Dynamic Programming Microsoft, Bloomberg, eBay +34 Solve
Longest Common PrefixString Basics Easy Arrays & Hashing Amazon, Microsoft, Bloomberg +41 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Meta, Apple +53 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +81 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +60 Solve
Missing NumberMissing / Repeated Numbers Easy Bit Manipulation Microsoft, Nvidia, Palantir +29 Solve
Sort an ArrayMerge Sort Like Approach Medium Arrays & Hashing Apple, Confluent, Salesforce +27 Solve
Second Largest Element in an ArraySorting Easy Arrays & Hashing Nutanix, Rakuten, Morgan Stanley +13 Solve
Also reported, being added to AlgoRung (4)

Maximum 69 Number · Battleships in a Board · Minimum String Length After Removing Substrings · Find Polygon With the Largest Perimeter

Questions people ask

What coding questions does HSBC ask most?

Longest Palindromic Substring, Best Time to Buy and Sell Stock, Container With Most Water, Climbing Stairs, Longest Common Prefix, Two Sum, Valid Palindrome, Reverse Linked List.

Which topics come up in HSBC coding rounds?

arrays, strings, linked list, dynamic programming, two pointers, sorting.

How hard are HSBC coding questions?

Of the reported questions, 9 are easy, 3 medium and 0 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.