TORONTO KIDS COMPUTER CLUB | Aurora Monday 18:30 Homework
119

# Aurora Monday 18:30 Homework

## 03 JulAurora Monday 18:30 Python Homework 22.06.27.

Question: Joe Coder is camping near the Bay of Fundy between Nova Scotia and New Brunswick. When he arrived at the bay, he was told that the difference in height between high tide and low tide at the Bay of Fundy was the largest tidal difference...

## 26 JunAurora Monday 18:30 Python Homework 22.06.20.

Question: When moving, ants form rows so that each ant except the first is behind another ant. It is not widely known what happens when two rows of ants moving in opposite directions run into each other in a passage too narrow for both rows to...

## 19 JunAurora Monday 18:30 Python Homework 22.06.13.

Question: Rory is playing with an array A consisting of N integer elements indexed from 1 to N and a positive integer M. Rory will perform Q operations. Each operation is either type 1 or type 2. Type 1 operation is in the form 1 l r x. You should add x to each element in A[l], A[l + 1],...

## 12 JunAurora Monday 18:30 Python Homework 22.06.06.

Question 1: You take part in a competition and get good score. So you decide to add it to your resume. However, the released results only include the average rank for each of the attained scores. You think that might not be enough information, and want...

## 05 JunAurora Monday 18:30 Python Homework 22.05.30.

Question: Today in gym class, your class decided to play dodgeball, and Jack is selected as one of the team captains! N students are lined up in a row, waiting to be put on teams. Jack is allowed to pick multiple students as long as they are adjacent...

## 21 MayAurora Monday 18:30 Python Homework 22.05.16.

Question: Ken is working for the secret agency. He is going to send a secret message that encodes UPPERCASE words by shifting their letters forward. Shifting a letter by S positions means to go forward S letters in the alphabet. For example, shifting B by S = 3 positions gives E. However, sometimes...

## 13 MayAurora Monday 18:30 Python Homework 22.05.09.

Question: Every girl likes shopping, so does Jessica. Now she finds the shop is increasing the price every day because the Spring Festival is coming. Her favorite shop named "memory". Now she wants to know the rank of this shop's price after the change of everyday. Input...

## 08 MayAurora Monday 18:30 Python Homework 22.05.02.

Question: Being able to send encoded messages during World War II was very important to the Allies. The messages were always sent after being encoded with a known password. Having a fixed password was of course insecure, thus there was a need to change it frequently....

## 01 MayAurora Monday 18:30 Python Homework 22.04.25.

Before the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so called scribers. The scriber had been given a book and after several months he finished its copy. One...

## 24 AprAurora Monday 18:30 Python Homework 22.04.18.

Question 1: The hailstone sequence starting at a positive integer n is generated by following two simple rules. If n is even, the next number in the sequence is n/2. If n is odd, the next number in the sequence is 3*n+1. Repeating this process, we generate the hailstone sequence. Write a recursive function hailstone(n) which prints the...