Prepare->Algorithms->Warmu
pTime->Con
version
Given a time in -hour AM/PM format, convert it to military (24-hour) time.
First, try to solve it yourself and then come back to check the solution.
Question Link:
https://www.hackerrank.com/challenges/divisible-sum-pairs/problem?isFullScreen=true
What You SHOULD KNOW:
- 1. std::vector
- 2. if-else
- 3. Modulus(%)
- STL Algo:
- 4. count_if()
GitHub Link: Solution-divisibleSumPairs.cpp