Spotnana | Senior Software Engineer Interview
Summary
I was asked a two-letter card game problem during my Spotnana interview. The problem involved strategic thinking and optimization.
Full Experience
This was asked to me in the Spotnana interview :
Two letter card game : https://leetcode.com/problems/two-letter-card-game/description/
Interview Questions (1)
Two Letter Card Game
In 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.