[Codeforces] VK Cup 2012 Finals, Practice Session A. Multicolored MarblesRead more
[Codeforces] Round #131 (Div. 2) B. HometaskRead more
[Codeforces] Round #135 (Div. 2) C. Color StripeRead more
[Codeforces] Round #139 (Div. 2) B. Well-known NumbersRead more
[Codeforces] Round #143 (Div. 2) C. To Add or Not to AddRead more
[LeetCode] Detect Capital

520. Detect Capital

We define the usage of capitals in a word to be right when one of the following cases holds:

  • All letters in this word are capitals, like “USA”.
  • All letters in this word are not capitals, like “leetcode”.
  • Only the first letter in this word is capital, like “Google”.

Given a string word, return true if the usage of capitals in it is right.

Read more
[AtCoder] F - Knapsack for All SegmentsRead more
[AtCoder] E - YutoriRead more
[AtCoder] F - Select HalfRead more
[AtCoder] E - Sum of gcd of Tuples (Hard)Read more