Akuna CapitalCodingMembers
Maximum Distinct Elements After K Swaps
Members only
Akuna intern OA counting problem: you may swap elements between two arrays a limited number of times and want to maximize how many distinct values end up in the first array. The work is in deciding which swaps actually buy you a new distinct value within the swap budget. Pairs with the minimum-days and array-counter problems in the same 120-minute sitting.
SWE
RS
hashmap
greedy
array
medium
Frequency
Low
Last asked
2025-10-29
Stage
oa
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
