CCC 2018 J3: Are we there yet?

https://www.cemc.uwaterloo.ca/contests/computing/2018/stage%201/juniorEF.pdf Use a for loop to determine the first output line by adding...

top of page

Search

Aug 12, 20201 min

CCC 2018 J3: Are we there yet?

https://www.cemc.uwaterloo.ca/contests/computing/2018/stage%201/juniorEF.pdf Use a for loop to determine the first output line by adding...

Aug 12, 20201 min

Linear search

A linear search is used on a collection of items. It relies on the technique of traversing a list from start to end by exploring...

Jul 31, 20201 min

CCC 2003 S4 - Substrings

https://www.cemc.uwaterloo.ca/contests/computing/2003/stage1/2003CCCStage1Contest.pdf This is a string handling question. When you solve...

Jul 31, 20201 min

CCC 2001 S3 : Strategic Bombing

https://www.cemc.uwaterloo.ca/contests/computing/2001/stage1/2001CCCStage1Contest.pdf Solutions: Build a graph data structure, list1 keep...

Jul 26, 20201 min

CCC 2012 J2: Sounds Fishy!

https://www.cemc.uwaterloo.ca/contests/computing/2012/stage1/juniorEn.pdf A simple comparison of 4 numbers in a list numbers = [] for i...

Jul 26, 20201 min

CCC 2012 J1: Speed Fines are Not Fine!

https://www.cemc.uwaterloo.ca/contests/computing/2012/stage1/juniorEn.pdf Simple if and else-if statements while comparing inputs limit =...

Jul 26, 20201 min

CCC 2013 J2: Rotating Letters

https://www.cemc.uwaterloo.ca/contests/computing/2013/stage1/juniorEn.pdf Using a boolean to determine if the input is "NO" or "YES" word...

Jul 26, 20201 min

CCC 2013 J1: Next in Line

https://www.cemc.uwaterloo.ca/contests/computing/2013/stage1/juniorEn.pdf Subtract middle by youngest to find age difference then add it...

Jul 23, 20201 min

CCC 2014 J2: Vote Count

https://www.cemc.uwaterloo.ca/contests/computing/2014/stage%201/juniorEn.pdf Comparing the indexes in a String then using if statements...

Jul 23, 20201 min

CCC 2014 J1: Triangle Times

https://www.cemc.uwaterloo.ca/contests/computing/2014/stage%201/juniorEn.pdf A simple logic problem that uses if, else-if and else...

Jul 23, 20201 min

CCC 2015 J2: Happy or Sad

https://www.cemc.uwaterloo.ca/contests/computing/2015/stage%201/juniorEn.pdf Comparing elements in a string and using a counter. Using if...

Jul 23, 20201 min

CCC 2015 J1: Special Day

https://www.cemc.uwaterloo.ca/contests/computing/2015/stage%201/juniorEn.pdf A simple if-else statement comparing inputs def dates(a,b):...

Jul 23, 20201 min

CCC 2016 J2: Magic Squares

https://www.cemc.uwaterloo.ca/contests/computing/2016/stage%201/juniorEn.pdf Turn input into a matrix(2D array). Then calculate the sum...

Jul 23, 20201 min

CCC 2016 J1: Tournament Selection

https://www.cemc.uwaterloo.ca/contests/computing/2016/stage%201/juniorEn.pdf A for-loop adding all recorded games in a list. Then...

Jul 23, 20201 min

CCC 2017 J2: Shifty Sum

https://www.cemc.uwaterloo.ca/contests/computing/2017/stage%201/juniorEF.pdf A for loop that adds the first input times 10 ^ x (x being...

Jul 23, 20201 min

CCC 2017 J1: Quadrant Selection

https://www.cemc.uwaterloo.ca/contests/computing/2017/stage%201/juniorEF.pdf A simple if-else statement comparing if inputs are greater...

Jul 23, 20201 min

CCC 2018 J2: Occupy parking

https://www.cemc.uwaterloo.ca/contests/computing/2018/stage%201/juniorEF.pdf Simple if statement nested in a for loop that adds 1 to a...

Jul 23, 20201 min

CCC 2018 J1: Telemarketer or not?

https://www.cemc.uwaterloo.ca/contests/computing/2018/stage%201/juniorEF.pdf Simple if-else statement by comparing numbers meeting these...

Jul 21, 20202 min

Minimum Spanning Tree

What is a Spanning Tree? Given an undirected and connected graph G=(V, E), a spanning tree of the graph G is a tree that spans G (that...

Jul 21, 20204 min

Dynamic programming introduction

If break up a problem into a series of overlapping sub-problems, and build up solutions to larger and larger sub-problems. If a problem...

bottom of page