« All Events
2:30 PM – Intro To Competitive Programming – Gamas
November 4, 2023 @ 2:30 pm - 3:30 pm
Today We Did
- We went over the 3 websites: www.usaco.org, train.usaco.org and usaco.guide.
- We went over recursion
- the rule of recursion
- basic examples and its while true equivalent.
Homework
- Try to do the ride problem in train.usaco.org (https://train.usaco.org/usacoprob2?a=fLA2Ka5cfp5&S=ride)
- Try to do this problem in while true
Enter a number: -5
-5
-4
-3
-2
-1
0
1
2
3
4
5
6
7
8
9
10
- Try to do the same problem using recursion.
- Try to do math factorial using while loop and recursion.