HSBC Campus Placement 2025 | Alex Keyboard | Complete Solutions & Tips | Oct 4th Assessment
HSBC · Question · Posted Apr 2026
01. Alex Keyboard Problem Statement: Alex is having a problem with his keyboard. If he is pressing any key, he is getting one or more occurrences of that character. Example: If he wants to write hey, his keyboard may write hey, hhey, hheey, heey, hhheyyy, or some other combination of the characters pressed by him. You are given a string s typed by Alex. Your task is to find out the number of possible strings Alex was trying to type ...
The full answer & interview discussion are available to premium members.
Log in Create a free account