Spotnana | Senior Software Engineer Interview
- Posted
- 11 May 2026
Summary
I was asked a two-letter card game problem during my Spotnana interview. The problem involved strategic thinking and optimization.
How it went
This was asked to me in the Spotnana interview :
Two letter card game : https://leetcode.com/problems/two-letter-card-game/description/
Questions asked (1)
- 01
Two Letter Card Game
Data Structures & Algorithms · Medium
Open the problemIn this game, you are given a deck of cards where each card has one of two letters: 'A' or 'B'. You can pick up two adjacent cards at a time. If both cards have the same letter, you earn points equal to the count of that letter remaining in the deck after removal. The goal is to maximize your total score by choosing optimal pairs.