[LeetCode] Number of Senior Citizens

2678. Number of Senior Citizens

You are given a 0-indexed array of strings details. Each element of details provides information about a given passenger compressed into a string of length 15. The system is such that:

  • The first ten characters consist of the phone number of passengers.
  • The next character denotes the gender of the person.
  • The following two characters are used to indicate the age of the person.
  • The last two characters determine the seat allotted to that person.

Return the number of passengers who are strictly more than 60 years old.

Read more
[Codewars] Fibo akinRead more
[Codewars] Second Variation on Caesar CipherRead more
[Codewars] Human readable duration formatRead more
[Codewars] Range ExtractionRead more
[Codewars] Strings MixRead more
[Hacker Rank] Grid WalkingRead more
[Hacker Rank] Fun GameRead more
[Hacker Rank] Yet Another Minimax ProblemRead more
[Hacker Rank] Bricks GameRead more