+ 22
🃏Card Snap [Challenge]🃏
/* Hey Shuffle 52 cards and run through the deck to find out how many snaps/pairs there are in the deck as follows. first 20 cards of a shuffled deck. A,A,3,4,2,6,8,8,8,8,J,J,K,A,6,Q,Q,Q,A,4 running through the deck to find pairs in order. snap 1 was AA snap 2 was 88 snap 3 was 88 snap 4 was JJ snap 5 was QQ Challenge by D_Stark */
9 Antworten
+ 15
https://code.sololearn.com/cLjUoS6I0JR9/?ref=app
+ 11
+ 10
https://code.sololearn.com/WZkdjMboYr2A/?ref=app
+ 8
https://code.sololearn.com/cFRm7uZD5Ht1/#py
+ 5
My python, using regex:
https://code.sololearn.com/cenLUEP3veyk/#py
+ 5
Might be really late, but it's short.
https://code.sololearn.com/cqtMQSj7JHP0/?ref=app