AlgoMaster Logo

Maximum Points You Can Obtain from Cards

cardPoints=[1, 2, 3, 4, 5, 6, 1],k=3
0 / 24
algomaster.io
Step:Start: pick k cards from the two ends, trying every choice