[LeetCode] Best Poker Hand

2347. Best Poker Hand

You are given an integer array ranks and a character array suits. You have 5 cards where the ith card has a rank of ranks[i] and a suit of suits[i].

The following are the types of poker hands you can make from best to worst:

  1. “Flush”: Five cards of the same suit.
  2. “Three of a Kind”: Three cards of the same rank.
  3. “Pair”: Two cards of the same rank.
  4. “High Card”: Any single card.

Return a string representing the best type of poker hand you can make with the given cards.

Note that the return values are case-sensitive.

Read more
[AtCoder] C - Subarray SumRead more
[AtCoder] B - Robot ArmsRead more
[AtCoder] E - Almost Everywhere ZeroRead more
[AtCoder] D - Dice in LineRead more
[AtCoder] C - Count OrderRead more
[Codeforces] Round #286 (Div. 2) B. Mr. Kitayuta`s Colorful GraphRead more
[Codeforces] Round #287 (Div. 2) B. Amr and PinsRead more
[Codeforces] Rockethon 2015 B1. PermutationsRead more
[Codeforces] Round #291 (Div. 2) B. Han Solo and Lazer GunRead more