top of page
Search
CCC 2020 S1: Surmising a Sprinter's Speed
Sort the points by time. Then loop through consecutive pairs to find the constant speed over each interval. The answer is the maximum of...
Jun 21, 20201 min read
CCC2020 S3: Searching for Strings
Let S be a substring of H with length |N| To check whether S is a permutation of H, keep a count of each of the 26 letters of the...
Jun 21, 20202 min read
Heap sort
Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first...
May 3, 20202 min read
CCC 2019 Junior J5: Rule of Three Solution
https://cemc.uwaterloo.ca/contests/computing/2019/stage%201/juniorEF.pdf Build two lists wordsrc and worddst to simulate a dictionary....
Apr 28, 20201 min read
Array in c++
An array in C or C++ is a collection of items stored at contiguous memory locations and elements can be accessed randomly using indices...
Apr 3, 20202 min read
One-time Donations
I hope I can solve all CCC problems!
bottom of page