Jun 21, 20201 minCCC 2020 S1: Surmising a Sprinter's SpeedSort 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, 20202 minCCC2020 S3: Searching for StringsLet 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...
May 3, 20202 minHeap sortHeap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first...
Apr 28, 20201 minCCC 2019 Junior J5: Rule of Three Solutionhttps://cemc.uwaterloo.ca/contests/computing/2019/stage%201/juniorEF.pdf Build two lists wordsrc and worddst to simulate a dictionary....
Apr 3, 20202 minArray 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...