Given a permutation of card positions and a target assignment of each card to a player, find the minimum number of shuffles so every card reaches its target player, or -1.
Medium6ArrayMathImplementationNumber theoryInterviewNo attempts yetTime limit2sMemory limit128 MB