USACO fundemntal: Introduction to Algorithm I
- 12 Sections
- 222 Lessons
Introduction to USACO
Simulation
- Simulation
- USACO 2019 January Contest, Bronze: Shell Game
- Analysis/Solution: USACO 2019 January Contest, Bronze: Shell Game
- USACO 2018 December Contest, Bronze Problem 1. Mixing Milk
- Analysis: USACO 2018 December Contest, Bronze Problem 1. Mixing Milk
- Simulation Problems ( real USACO problems)
- USACO 2016 December Contest, Bronze Problem 3. The Cow-Signal
- Analysis: USACO 2016 December Contest, Bronze Problem 3. The Cow-Signal
- USACO 2015 December Contest, Bronze Problem 2. Speeding Ticket
- Analysis: USACO 2015 December Contest, Bronze Problem 2. Speeding Ticket
- USACO 2017 US Open Contest, Bronze Problem 1. The Lost Cow
- Analysis: Lost cow
- USACO 2017 December Contest, Bronze Problem 2. The Bovine Shuffle
- Analysis: The Bovine Shuffle
- USACO 2018 December Contest, Bronze Problem 2. The Bucket List
- Analysis: USACO 2018 December Contest, Bronze Problem 2. The Bucket List
- USACO 2019 February Contest, Bronze Problem 3. Measuring Traffic
- Analysis: USACO 2019 February Contest, Bronze Problem 3. Measuring Traffic
- USACO 2016 February Contest, Bronze Problem 2. Circular Barn
- Analysis: USACO 2016 February Contest, Bronze Problem 2. Circular Barn
- USACO 2016 December Contest, Bronze Problem 2. Block Game
- Analysis: USACO 2016 December Contest, Bronze Problem 2. Block Game
- USACO 2018 US Open Contest, Bronze Problem 1. Team Tic Tac Toe
- Analysis: USACO 2018 US Open Contest, Bronze Problem 1. Team Tic Tac Toe
- USACO 2016 January Contest, Bronze Problem 3. Mowing the Field
- Analysis: USACO 2016 January Contest, Bronze Problem 3. Mowing the Field
- USACO 2015 February Contest, Bronze Problem 1. Censoring (Bronze)
- Analysis: USACO 2015 February Contest, Bronze Problem 1. Censoring (Bronze)
- USACO 2017 December Contest, Bronze Problem 3. Milk Measurement
- Analysis: USACO 2017 December Contest, Bronze Problem 3. Milk Measurement
- USACO 2020 December Contest, Bronze Problem 3. Stuck in a Rut
- Analysis: USACO 2020 December Contest, Bronze Problem 3. Stuck in a Rut
- USACO 2020 February Contest, Bronze Problem 1. Triangles
- USACO 2017 February Contest, Bronze Problem 2. Why Did the Cow Cross the Road II
Complete Search
- Complete search (brute force)
- 🧠 Advanced topic: combinations and permutations
- USACO common complete search techniques
- 🌟 Advanced topic: Handle duplicates in combination
- 🧠 Advanced topic: Handle duplicate in permutation
- Complete Search Patrice problems
- USACO 2016 February Contest, Bronze Problem 1. Milk Pails
- Analysis: USACO 2016 February Contest, Bronze Problem 1. Milk Pails
- USACO 2016 US Open Contest, Bronze Problem 1. Diamond Collector
- Analysis: USACO 2016 US Open Contest, Bronze Problem 1. Diamond Collector
- USACO 2020 December Contest, Bronze Problem 2. Daisy Chains
- Analysis: USACO 2020 December Contest, Bronze Problem 2. Daisy Chains
- USACO 2022 US Open Contest, Bronze Problem 2. Counting Liars
- Analysis: USACO 2022 US Open Contest, Bronze Problem 2. Counting Liars
- USACO 2019 December Contest, Bronze Problem 1. Cow Gymnastics
- Analysis: USACO 2019 December Contest, Bronze Problem 1. Cow Gymnastics
- USACO 2017 US Open Contest, Bronze Problem 2. Bovine Genomics
- Analysis: USACO 2017 US Open Contest, Bronze Problem 2. Bovine Genomics
- USACO 2020 February Contest, Bronze Problem 1. Triangles
- Analysis: USACO 2020 February Contest, Bronze Problem 1. Triangles
- USACO 2018 January Contest, Bronze Problem 2. Lifeguards
- Analysis: USACO 2018 January Contest, Bronze Problem 2. Lifeguards
- USACO 2017 February Contest, Bronze Problem 2. Why Did the Cow Cross the Road II
- Analysis: USACO 2017 February Contest, Bronze Problem 2. Why Did the Cow Cross the Road II
- USACO 2019 January Contest, Bronze Problem 3. Guess the Animal
- Analysis: USACO 2019 January Contest, Bronze Problem 3. Guess the Animal
- USACO 2016 February Contest, Bronze Problem 3. Load Balancing
- Analysis: USACO 2016 February Contest, Bronze Problem 3. Load Balancing
- USACO 2022 February Contest, Bronze Problem 1. Sleeping in Class
- Analysis: USACO 2022 February Contest, Bronze Problem 1. Sleeping in Class
- USACO 2015 December Contest, Bronze Problem 3. Contaminated Milk
- Analysis: USACO 2015 December Contest, Bronze Problem 3. Contaminated Milk
- USACO 2020 US Open Contest, Bronze Problem 3. Cowntact Tracing
- Analysis: USACO 2020 US Open Contest, Bronze Problem 3. Cowntact Tracing
- USACO 2016 US Open Contest, Bronze Problem 2. Bull in a China Shop
- Analysis: USACO 2016 US Open Contest, Bronze Problem 2. Bull in a China Shop
- USACO 2016 February Contest, Silver Problem 2. Load Balancing
- Analysis: USACO 2016 February Contest, Silver Problem 2. Load Balancing
- USACO 2023 US Open Contest, Bronze Problem 2. Moo Language
- Analysis: USACO 2023 US Open Contest, Bronze Problem 2. Moo Language
- Analysis: USACO 2023 January Contest, Bronze Problem 2. Air Cownditioning II
Recursion and Backtracking
- Basic Recursion and backtracking
- Two Main Recursive Strategies for Subset Problems
- DFS vs recursive/backtracking
- Apple Division
- Analysis: Apple Division
- Advanced topic: find all Sudoku solutions
- Advanced topic: Subset deep dive: Backtracking + for loop, Choose/Not Choose difference
- Permutation: recursive
- Lexicographical Order
- Problem: Permutations Creating Strings
- Analysis: Creating Strings I
- Problem: Backtracking Chessboard and Queens
- Analysis: Solution - Chessboard & Queens
- Recursive and Backtracking Practice problems
- USACO 2023 January Contest, Bronze Problem 2. Air Cownditioning II
- Analysis: USACO 2023 January Contest, Bronze Problem 2. Air Cownditioning II
- USACO 2019 December Contest, Bronze Problem 3. Livestock Lineup
- Analysis: USACO 2019 December Contest, Bronze Problem 3. Livestock Lineup
- USACO 2018 December Contest, Bronze Problem 3. Back and Forth
- Analysis: USACO 2018 December Contest, Bronze Problem 3. Back and Forth
- CCC '08 S4 - Twenty-four
- Analysis: CCC '08 S4 - Twenty-four
- D. Three Logos
- Analysis: Codeforces 581D - Three Logos.
Sorting
- Sorting and Simple Data Structures
- 📚 Advanced topic: Sorting Algorithms — Complete Guide
- Advanced topic: sort algorithm implementation
- Using Sorting to Solve USACO Problems
- Concrete examples for sorted-based pattern
- Advanced topic: Sorting + Greedy / Two Pointers / Binary Search`
- Advanced topic: How to proof greedy strategy give optimal solution
- Sorting practice problems
- Sorting problem II ( set/maps)
- Distinct Numbers
- Coding problem: B. Playing in a Casino
- Analysis: CF - Playing in a Casino
- Coding problem: B. Kayaking
- Analysis: B. Kayaking
- USACO 2017 February Contest, Bronze Problem 3. Why Did the Cow Cross the Road III
- Analysis: USACO 2017 February Contest, Bronze Problem 3. Why Did the Cow Cross the Road III
- USACO 2022 December Contest, Bronze Problem 1. Cow College
- Analysis: USACO 2022 December Contest, Bronze Problem 1. Cow College
- USACO 2016 January Contest, Bronze Problem 2. Angry Cows
- Analysis:USACO 2016 January Contest, Bronze Problem 2. Angry Cows
- H. Permutator
- Analysis: H. Permutator
Introduction to Sets & Maps
- USACO Bronze/Silver set, unordered_set, map, and unordered_map
- Advanced topic: set (log n) or unorded_set? o(N^2)
- Advanced topic: C++ Custom Comparators for set / map / unordered_map
- Typical pattern for set, map, unordered_set, and unordered_map
- Understanding Modulo (%) with Negative Numbers in C++
- Sum of Two Values
- Analysis: Sum of Two Values ( must-do)
- USACO 2019 December Contest, Bronze Problem 2. Where Am I?
- Analysis: USACO 2019 December Contest, Bronze Problem 2. Where Am I?
- USACO 2018 US Open Contest, Bronze Problem 1. Team Tic Tac Toe
- Analysis: USACO 2018 US Open Contest, Bronze Problem 1. Team Tic Tac Toe
- USACO 2021 February Contest, Bronze Problem 1. Year of the Cow
- Analysis: USACO 2021 February Contest, Bronze Problem 1. Year of the Cow
- USACO 2017 January Contest, Bronze Problem 1. Don't Be Last!
- Analysis: USACO 2017 January Contest, Bronze Problem 1. Don't Be Last!
- USACO 2016 December Contest, Silver Problem 2. Cities and States
- Analysis: USACO 2016 December Contest, Silver Problem 2. Cities and States
- C. Jury Marks
- C - Made Up
- G1. Into Blocks (easy version)
Basic Graph Traversal
- Basic Graph Traversal
- 🟢 Complete BFS – USACO/Competitive Programming
- 🟢 Advanced topic: Dijkstra's Algorithm ( positive weights on edge/BFS)
- DFS
- Advanced topic: DFS Tricks & Techniques Cheat Sheet
- Advanced topic: Topological Sort Using DFS/BFS
- 🚀 DFS and BFS for USACO Bronze problems
- ✅ Things to Watch Out for in DFS (Bronze Level)
- DFS review
- BFS review
- 🧭 DFS vs BFS — Complete Comparison & Conversion Workbook
- Practice problems
- USACO 2019 December Contest, Bronze Problem 3. Livestock Lineup
- Analysis: USACO 2019 December Contest, Bronze Problem 3. Livestock Lineup
- USACO 2019 January Contest, Silver Problem 1. Grass Planting
- Analysis: USACO 2019 January Contest, Silver Problem 1. Grass Planting
- USACO 2019 February Contest, Bronze Problem 2. The Great Revegetation
- Analysis: USACO 2019 February Contest, Bronze Problem 2. The Great Revegetation
- USACO 2019 US Open Contest, Bronze Problem 2. Milk Factory
- Analysis: USACO 2019 US Open Contest, Bronze Problem 2. Milk Factory
- USACO 2020 February Contest, Bronze Problem 3. Swapity Swap
- Analysis: USACO 2020 February Contest, Bronze Problem 3. Swapity Swap
- USACO 2019 US Open Contest, Bronze Problem 3. Cow Evolution
- Analysis: USACO 2019 US Open Contest, Bronze Problem 3. Cow Evolution
- USACO 2018 US Open Contest, Bronze Problem 3. Family Tree
- Analysis: USACO 2018 US Open Contest, Bronze Problem 3. Family Tree
Greedy Algorithms
- Introduction to Greedy Algorithms
- 🐄 Greedy Algorithms how to know it is a good strategy for a USACO (Bronze/Silver) problem
- Practice problems
- USACO 2020 February Contest, Bronze Problem 2. Mad Scientist
- Analysis: USACO 2020 February Contest, Bronze Problem 2. Mad Scientist
- USACO 2023 February Contest, Bronze Problem 3. Watching Mooloo
- Analysis: USACO 2023 February Contest, Bronze Problem 3. Watching Mooloo
- USACO 2017 January Contest, Bronze Problem 3. Cow Tipping
- Analysis: USACO 2017 January Contest, Bronze Problem 3. Cow Tipping
- USACO 2021 January Contest, Bronze Problem 2. Even More Odd Photos
- Analysis: USACO 2021 January Contest, Bronze Problem 2. Even More Odd Photos
- USACO 2018 January Contest, Bronze Problem 3. Out of Place
- Analysis: USACO 2018 January Contest, Bronze Problem 3. Out of Place
- USACO 2022 US Open Contest, Bronze Problem 1. Photoshoot
- Analysis: USACO 2022 US Open Contest, Bronze Problem 1. Photoshoot
- USACO 2020 January Contest, Bronze Problem 3. Race
- Analysis: USACO 2020 January Contest, Bronze Problem 3. Race
- USACO 2023 US Open Contest, Bronze Problem 1. FEB
- Analysis: USACO 2023 US Open Contest, Bronze Problem 1. FEB
Ad Hoc Problems
- Ad Hoc Problems
- Practice problems
- USACO 2016 January Contest, Bronze Problem 1. Promotion Counting
- Analysis: USACO 2016 January Contest, Bronze Problem 1. Promotion Counting
- USACO 2018 US Open Contest, Bronze Problem 2. Milking Order
- Analysis: USACO 2018 US Open Contest, Bronze Problem 2. Milking Order
- USACO 2019 February Contest, Bronze Problem 1. Sleepy Cow Herding
- USACO 2019 February Contest, Bronze Problem 1. Sleepy Cow Herding
- Analysis: USACO 2019 February Contest, Bronze Problem 1. Sleepy Cow Herding
- USACO 2019 January Contest, Bronze Problem 2. Sleepy Cow Sorting
- Analysis: USACO 2019 January Contest, Bronze Problem 2. Sleepy Cow Sorting
- USACO 2018 February Contest, Bronze Problem 3. Taming the Herd
- Analysis: USACO 2018 February Contest, Bronze Problem 3. Taming the Herd
- USACO 2017 US Open Contest, Bronze Problem 3. Modern Art
- Analysis: USACO 2017 US Open Contest, Bronze Problem 3. Modern Art
- USACO 2018 February Contest, Bronze Problem 2. Hoofball
- Analysis: USACO 2018 February Contest, Bronze Problem 2. Hoofball
- USACO 2023 US Open Contest, Bronze Problem 1. FEB
- Analysis:USACO 2023 US Open Contest, Bronze Problem 1. FEB
- USACO 2021 January Contest, Silver Problem 3. Spaced Out
- Analysis: USACO 2021 January Contest, Silver Problem 3. Spaced Out
Rectangle Geometry
- rectangle geometry
- Practice problems
- USACO 2015 December Contest, Bronze Problem 1. Fence Painting
- USACO 2017 December Contest, Bronze Problem 1. Blocked Billboard
- Analysis: USACO 2017 December Contest, Bronze Problem 1. Blocked Billboard
- USACO 2016 December Contest, Bronze Problem 1. Square Pasture
- USACO 2018 January Contest, Bronze Problem 1. Blocked Billboard II
- Analysis: USACO 2018 January Contest, Bronze Problem 1. Blocked Billboard II
- CF square/rect
More Practice Problems
Documents
Course Overview:
Welcome to USACO Fundamental: Introduction to Algorithm I — your starting point for mastering the USA Computing Olympiad (USACO) Bronze level! This course is designed for students who already know the basics of C++ programming and are now ready to build a solid foundation in problem-solving and algorithms. By working through real USACO Bronze-level problems, you'll develop the core algorithmic thinking and coding skills needed to tackle competitive programming challenges.
What You Will Learn:
-
Simulation – Modeling and simulating real-world scenarios step-by-step
-
Search Algorithms – Brute-force, exhaustive search, and intro to binary search
-
Recursion – Writing recursive functions to simplify complex problems
-
Sorting – Using built-in sorting, custom comparators, and applications in problem-solving
-
Graph Basics – Introduction to graph representation and simple traversals
-
Greedy Algorithms – Making optimal local decisions for global results
-
Geometry – Grid geometry, coordinates, distance calculations, and edge cases
-
Set/Map – Efficient data storage and lookup using STL containers
-
Ad Hoc Problems – Logical reasoning and pattern recognition in unexpected scenarios
-
File I/O – Reading from and writing to files in USACO format
-
Debugging & Edge Cases – Techniques to find and fix logical and runtime errors
Course Features:
-
Hands-on Practice: Weekly coding exercises and real USACO Bronze problems
-
Guided Walkthroughs: Step-by-step solutions and algorithm breakdowns
-
Live Support: Weekly Q&A and instructor code review
-
Flexible Learning: All lessons recorded with notes and code examples
Ideal For:
-
Students who already know C++ and want to start competitive programming
-
Beginners aiming to participate in USACO Bronze or similar contests
-
Middle and high school students building algorithm foundations
-
Anyone preparing for coding competitions or technical interviews
Duration:
10 weeks, with 1 session per week (1 hours per session)
Prerequisites:
A basic understanding of C++ programming is required (variables, loops, arrays, functions). Prior exposure to coding logic is highly recommended.
Materials Included:
-
Video lectures and annotated problem walkthroughs
-
Weekly homework and challenge problems
-
Source code templates and C++ snippets
-
Practice datasets and USACO-style I/O guides
Outcome:
By the end of this course, you’ll be ready to tackle USACO Bronze problems with confidence, equipped with a solid grasp of essential algorithm techniques and problem-solving strategies.
Join Us Today and Build Your Competitive Programming Foundation!
You must be logged in to submit a review .