# Posts by Tag

## USACO 2013 Open P1: Photo

USACO 2013 US Open, Gold Problem 1. Photo

## Dynamic Range Minimum Queries

CSES 1649: Dynamic Range Minimum Queries

Sum of digits

## Japan 2005 Domestic: Traveling by Stagecoach

Japan 2005 Domestic: Traveling by Stagecoach

## Central Europe 2003: Minimizing maximizer

Central Europe 2003: Minimizing maximizer

## Japan 2005 Domestic: Traveling by Stagecoach

Japan 2005 Domestic: Traveling by Stagecoach

Course Selection

## A Party Without a Boss

A Party Without a Boss

KK’s Chemicals

## USACO 2007 March Gold P3: Face The Right Way

USACO 2007 March Gold P3: Face The Right Way

## USACO 2005 December Gold P3: Layout

USACO 2005 December Gold P3: Layout

## Slicing Window Query: Min and Max of the Window

Slicing Window Query: Min and Max of the Window

## KMP Algorithm Explained

KMP Algorithm Explained

## Coordinate Compression: Range Sum

Coordinate Compression: Range Sum

## Interval DP: Scored Binary Tree

Interval DP: Bonus Binary Tree

## Interval DP Illustrated: Stone Merger

What is DP on Interval?

## DP Multiple Knapsack

DP Multiple Knapsack

## DP Mixed Knapsack

DP Mixed Knapsack Problem

## DP Finite Automata with Compression: Treasure Hunt

DP Finite Automata with Compression: Treasure Hunt

## DP Finite Automata with Compression: Password Counting

DP Finite Automata with Compression: Password Counting

## DP Finite Automata with Compression: DNA Repairing

DP Finite Automata with Compression: DNA Repairing

## DP Finite Automata with Compression: Little King

DP Finite Automata with Compression: Little King

## DP Finite Automata with Compression: Corn Yard

DP Finite Automata with Compression: Corn Yard

## DP Finite Automata with Compression: Artillery Position

DP Finite Automata with Compression: Artillery Position

## Group Knapsack Problem

Group Knapsack Problem

## Dynamic Programming: Number Combination

Dynamic Programming: Number Combination

## Dynamic Programming: Knapsack with Multiple Contstraits

Dynamic Programming: Knapsack with Multiple Contstraits

## Dynamic Programming: Currency System

Dynamic Programming: Currency System

## 0/1 Knapsack and UnBounded Knapsack Problem

0/1 Knapsack Problem

## Missile Defense System

Missile Defense System

## Dynamic Programming: Sister Cities

Dynamic Programming: Sister Cities

## Dynamic Programming: Chrous

Dynamic Programming: Chrous

## Dynmamic Programming: Passing Notes

Dynmamic Programming: Passing Notes (Chinese NOIP2008 Intermediate Q3)

## Dynamic Programming: Longest Increasing Subsequence O(NlogN) Algorithm

Longest Increasing Subsequence O(NlogN) Algorithm

## Dynamic Programming: Longest Increasing Subsequence

Longest Increasing Subsequence

## Dynamic Programming: Longest Common Subsequence

Longest Common Subsequence

## Dynmamic Programming: LCIS (Longest Common Increasing Sequence)

Dynmamic Programming: LCIS (Longest Common Increasing Sequence)

## USACO 2015 Feb Bronze

USACO 2015 Feb Bronze

## USACO 2016 Dec Bronze

USACO 2016 Dec Bronze

## USACO 2014 Jan Silver

USACO 2014 Jan Silver

## USACO 2014 Feb Silver

USACO 2014 Feb Silver

## USACO 2013 Open Silver

USACO 2013 Open Silver

## USACO 2013 Nov Silver

USACO 2013 Nov Silver

## USACO 2013 Nov Bronze

USACO 2013 Nov Bronze

## USACO 2013 Mar Silver

USACO 2013 Mar Silver

## USACO 2013 Feb Silver

USACO 2013 Feb Silver

## USACO 2012 Nov Silver

USACO 2012 Nov Silver

## USACO 2012 Dec Silver

USACO 2012 Dec Silver

## USACO 2011 Nov Silver

USACO 2011 Nov Silver

## USACO 2017 Open Bronze

USACO 2017 Open Bronze

## USACO 2017 Feb Bronze

USACO 2017 Feb Bronze

## Floodfill

less than 1 minute read

Floodfill (Recursive)

## Sorting and Custom Comparators

less than 1 minute read

Sorting with C++ Struct

## USACO 2017 Dec Bronze

USACO 2017 Dec Bronze

## USACO 2016 Jan Silver

USACO 2019 Jan Silver

## USACO 2017 Jan Bronze

USACO 2017 Jan Bronze

## USACO 2019 Jan Silver

USACO 2019 Jan Silver

## USACO 2018 Dec Silver

USACO 2018 Dec Silver

## USACO 2017 Jan Bronze

USACO 2017 Jan Bronze

## USACO 2015 Feb Bronze

USACO 2015 Feb Bronze

## USACO 2018 Feb Silver

USACO 2018 Feb Silver

## USACO 2018 Open Silver

USACO 2018 Open Silver

## USACO 2018 Open Bronze

USACO 2018 Open Bronze

## USACO 2020 Feb Bronze

USACO 2020 Feb Bronze

## USACO 2017 Open Silver

USACO 2017 Open Silver

## USACO 2017 Dec Silver

USACO 2017 Dec Silver

## USACO 2020 Jan Silver

USACO 2020 Jan Silver

## USACO 2019 Open Silver

USACO 2019 Open Silver

Tree Algorithms

## USACO 2016 Dec Gold

USACO 2016 Dec Gold

## USACO 2017 Feb Silver

USACO 2017 Feb Silver

## USACO 2016 Feb Silver

USACO 2016 Feb Silver

Binary Search

## USACO 2019 Feb Silver

USACO 2019 Feb Silver

## USACO 2019 Jan Silver

USACO 2019 Jan Silver

## USACO 2020 Open Silver

USACO 2020 Open Silver

## USACO 2017 Jan Silver

USACO 2017 Jan Silver

## USACO 2018 Jan Silver

USACO 2018 Jan Silver

## Bitwise Operations and Subset Algorithms

Bitwise Operations and Subset Algorithms

Graph Algorithms

## USACO 2020 Jan Bronze

USACO 2020 Jan Bronze

## USACO 2020 Feb Silver

USACO 2020 Feb Silver

## USACO 2019 Dec Silver

USACO 2019 Dec Silver

## USACO 2016 Jan Silver

USACO 2016 Jan Silver

## USACO 2016 Dec Silver

USACO 2016 Dec Silver

Grid Paths

## An Impassioned Circulation of Affection

C. An Impassed Circulation of Affection

## Binary Search Examples

Binary Search Examples

## USACO 2016 Open Silver

USACO 2016 Open Silver

## Maximum Subarray Sum

Maximum Subarray Sum

## USACO 2019 Jan Bronze

USACO 2019 Jan Bronze

## USACO 2019 Dec Bronze

USACO 2019 Dec Bronze

## USACO 2018 Dec Bronze

USACO 2018 Dec Bronze

## USACO 2017 Jan Silver

USACO 2017 Jan Silver

## USACO 2015 Dec Silver

USACO 2015 Dec Silver

Prefix Sum

Monotonous Stack

## USACO 2014 Dec Silver

USACO 2014 December Silver

## USACO 2014 Dec Gold

USACO 2014 December Gold

Subsets

## Permutations

less than 1 minute read

Permutations

## Palindrome Partitioning

Palindrome Partitioning

Combination Sum

Unique Paths II

## Longest Increasing Subsequence

less than 1 minute read

Longest Increasing Subsequence

House Robber

Climbing Stairs

## Best Time to Buy and Sell Stock

Best Time to Buy and Sell Stock

BFS Distance

## Greedy: Boyer-Moore’s Majority Vote

Boyer-Moore’s Majority Vote Algorithm

## Tree Traversal

Tree Traversal Algorithm

## Greedy: Dijkstra’s Shortest Path

Dijkstra’s Shortest Path

## Backtracking: Knights Tour Algorithm

Knights Tour Algorithm

## Backtracking: Hamiltonean Cycles Algorithm

Hamiltonean Cycles

## Recursion vs. Dynamic Programming Using a Question from AMC8

Recursion vs. Dynamic Programming Using a Question from AMC8

Flood Fill

## Basic Math in Programming

Basic Math in Programming

## Function Argument Passing in Python

Function Argument Passing in Python

Merge Sort

## Prime Numbers with Sieve of Eratosthenes

Generating Prime Numbers using Sieve of Eratosthenes algorithm

Selection Sort

Quick Short

Binary Search

## USACO 2018 US Open P3 Disruption

USACO 2018 Platinum US Open P3 Disruption

## USACO 2018 US Open P3 Disruption

USACO 2018 Platinum US Open P3 Disruption

## USACO 2019 Gold December P2 Milk Visits

USACO 2019 Gold December P2 Milk Visits

## USACO 2020 Gold Open P1. Cow Haircut

USACO 2019 February Contest, Gold P1. Cow Land

## USACO 2020 Gold Open P1. Cow Haircut

USACO 2020 Gold Open P1: Cow Haircut

## USACO 2015 Gold February P1. Cow Hopscotch

USACO 2015 Gold February P1: Cow Hopscotch

## USACO 2016 Platinum Open P1. 262144

less than 1 minute read

USACO 2016 2016 Platinum Open P1. 262144

## USACO 2018 Gold US Open P2. Milking Order

USACO 2018 Gold US Open P2. Milking Order

## USACO 2019 Platinum January P3. Train Tracking 2

USACO 2019 Platinum January P3: Train Tracking 2

## USACO 2015 Gold January P2. Moovie Mooving

USACO 2015 Gold January P2. Moovie Mooving

## USACO 2014 Gold November P1. Balanced Cow Breeds

USACO 2014 Gold November P1. Balanced Cow Breeds

## USACO 2010 Gold January P1. Taking Turns

USACO 2010 Gold January P1. Taking Turns

## USACO 2020 Bronze December P2. Even More Odd Photos

USACO 2020 Bronze December P2. Even More Odd Photos

## USACO 2020 Bronze December P3. Stuck in a Rut

USACO 2020 Bronze December P3. Stuck in a Rut

## USACO 2019 Bronze December P3. Livestock Lineup

USACO 2019 Bronze December P3. Livestock Lineup

## USACO 2017 Bronze January P3. Cow Tipping

USACO 2017 Bronze January P3. Cow Tipping

## USACO 2018 Bronze December P1. Mixing Milk

USACO 2018 December Contest, Bronze

## USACO 2017 Gold January P3. Cow Navigation

USACO 2017 Gold January P3. Cow Navigation

## USACO 2016 Gold December P3. Lasers and Mirrors

USACO 2016 Gold December P3. Lasers and Mirrors

## USACO 2021 Silver January P3. Spaced Out

USACO 2021 Silver January P3: Spaced Out

## USACO 2021 Silver January P1. Dance Mooves

USACO 2021 Silver January P1: Dance Mooves

## USACO 2021 Silver February P2. Year of the Cow

less than 1 minute read

USACO 2021 Silver February P2. Year of the Cow

## USACO 2021 Gold Open Q2. Portals

USACO 2021 Gold Open Q2. Portals

## USACO 2021 Gold January P2. Telephone

USACO 2021 Gold January P2: Telephone

## USACO 2021 Bronze January P3. Just Stalling

less than 1 minute read

USACO 2021 Bronze January P3: Just Stalling

## USACO 2021 Bronze January P2. Even More Odd Photos

less than 1 minute read

USACO 2021 Bronze January P2: Even More Odd Photos

## USACO 2021 Bronze February P3. Clockwise Fence

less than 1 minute read

USACO 2021 Bronze February P3. Clockwise Fence

## USACO 2020 Silver US Open P2. Cereal

USACO 2020 Silver US Open P2: Cereal

## USACO 2020 Silver US Open P1. Social Distancing

USACO 2020 Silver US Open P1: Social Distancing

## USACO 2020 Silver December P3. Stuck in a Rut

less than 1 minute read

USACO 2020 Silver December P3: Stuck in a Rut

## USACO 2020 Silver December P2. Rectangular Pasture

less than 1 minute read

USACO 2020 Silver December P2: Rectangular Pasture

## USACO 2020 Silver December P1. Cowntagion

less than 1 minute read

USACO 2020 Silver December P1: Cowntagion

## USACO 2019 Silver December P2. Meetings

less than 1 minute read

USACO 2019 Silver December P2: Meetings

## USACO 2019 Gold January P2. Sleepy Cow Herding

less than 1 minute read

USACO 2019 Gold January P2: Sleepy Cow Herding

## USACO 2018 Gold US Open P3. Talent Show

less than 1 minute read

USACO 2018 Gold US Open P3: Talent Show

## USACO 2018 Gold February P3. Taming the Herd

less than 1 minute read

USACO 2018 Gold February P3. Taming the Herd

## USACO 2018 Gold December P3. Teamwork

less than 1 minute read

USACO 2018 Gold December P3. Teamwork

## USACO 2017 Gold January P2. Hoof, Paper, Scissors

less than 1 minute read

USACO 2017 Gold January P2: Hoof, Paper, Scissors

## USACO 2017 Gold February P2. Why Did the Cow Cross the Road II

less than 1 minute read

USACO 2017 Gold February P2. Why Did the Cow Cross the Road II

## USACO 2017 Gold December P3. Haybale Feast

less than 1 minute read

USACO 2017 Gold December P3: Haybale Feast

## USACO 2017 Gold December P2. Barn Painting

less than 1 minute read

USACO 2017 Gold December P3: Barn Painting

## USACO 2016 Gold US Open P2. Closing the Farm

less than 1 minute read

USACO 2016 Gold US Open P2: Closing the Farm

## USACO 2016 Gold January P2. Radio Contact

less than 1 minute read

USACO 2016 Gold January P2: Radio Contact

## USACO 2016 Gold December P2. Cow Checklist

less than 1 minute read

USACO 2016 Gold December Q2: Cow Checklist

## USACO 2015 Silver US Open P3. Bessie’s Birthday Buffet

less than 1 minute read

USACO 2015 Silver US Open P3. Bessie’s Birthday Buffet

## USACO 2015 Silver January P3. Meeting Time

less than 1 minute read

USACO 2015 Silver January P3. Meeting Time

## USACO 2015 Silver January P2. Cow Routing

less than 1 minute read

USACO 2015 Silver January P2: Cow Routing

## USACO 2015 Silver January P1. Stampede

less than 1 minute read

USACO 2015 Silver January P1: Stampede

## USACO 2015 Silver February P3. Superbull

less than 1 minute read

USACO 2015 Silver February P3: Superbull

## USACO 2015 Silver February P2. Cow Hopscotch

less than 1 minute read

USACO 2015 Silver February P2: Cow Hopscotch

## USACO 2013 Silver November P3. Pogo-Cow

less than 1 minute read

USACO 2013 Silver November P3. Pogo-Cow

## USACO 2013 Silver March P3. The Cow Run

less than 1 minute read

USACO 2013 Silver March P3: The Cow Run

## USACO 2021 Gold Open Q2. Portals

USACO 2021 Gold Open Q2. Portals

## USACO 2021 Gold Open Q1. United Cows of Farmer John

USACO 2021 Gold Open Q1. United Cows of Farmer John

## USACO 2007 March Gold P3: Face The Right Way

USACO 2007 March Gold P3: Face The Right Way

## USACO 2005 December Gold P3: Layout

USACO 2005 December Gold P3: Layout

## USACO 2015 Feb Bronze

USACO 2015 Feb Bronze

## USACO 2016 Dec Bronze

USACO 2016 Dec Bronze

## USACO 2014 Jan Silver

USACO 2014 Jan Silver

## USACO 2014 Feb Silver

USACO 2014 Feb Silver

## USACO 2013 Open Silver

USACO 2013 Open Silver

## USACO 2013 Nov Silver

USACO 2013 Nov Silver

## USACO 2013 Nov Bronze

USACO 2013 Nov Bronze

## USACO 2013 Mar Silver

USACO 2013 Mar Silver

## USACO 2013 Feb Silver

USACO 2013 Feb Silver

## USACO 2012 Nov Silver

USACO 2012 Nov Silver

## USACO 2012 Dec Silver

USACO 2012 Dec Silver

## USACO 2011 Nov Silver

USACO 2011 Nov Silver

## USACO 2017 Open Bronze

USACO 2017 Open Bronze

## USACO 2017 Feb Bronze

USACO 2017 Feb Bronze

## USACO 2017 Dec Bronze

USACO 2017 Dec Bronze

## USACO 2016 Jan Silver

USACO 2019 Jan Silver

## USACO 2017 Jan Bronze

USACO 2017 Jan Bronze

## USACO 2019 Jan Silver

USACO 2019 Jan Silver

## USACO 2018 Dec Silver

USACO 2018 Dec Silver

## USACO 2017 Jan Bronze

USACO 2017 Jan Bronze

## USACO 2015 Feb Bronze

USACO 2015 Feb Bronze

## USACO 2018 Feb Silver

USACO 2018 Feb Silver

## USACO 2018 Open Silver

USACO 2018 Open Silver

## USACO 2018 Open Bronze

USACO 2018 Open Bronze

## USACO 2020 Feb Bronze

USACO 2020 Feb Bronze

## USACO 2017 Open Silver

USACO 2017 Open Silver

## USACO 2017 Dec Silver

USACO 2017 Dec Silver

## USACO 2020 Jan Silver

USACO 2020 Jan Silver

## USACO 2019 Open Silver

USACO 2019 Open Silver

## USACO 2016 Dec Gold

USACO 2016 Dec Gold

## USACO 2017 Feb Silver

USACO 2017 Feb Silver

## USACO 2016 Feb Silver

USACO 2016 Feb Silver

## USACO 2019 Feb Silver

USACO 2019 Feb Silver

## USACO 2019 Jan Silver

USACO 2019 Jan Silver

## USACO 2020 Open Silver

USACO 2020 Open Silver

## USACO 2017 Jan Silver

USACO 2017 Jan Silver

## USACO 2018 Jan Silver

USACO 2018 Jan Silver

## USACO 2020 Jan Bronze

USACO 2020 Jan Bronze

## USACO 2020 Feb Silver

USACO 2020 Feb Silver

## USACO 2019 Dec Silver

USACO 2019 Dec Silver

## USACO 2016 Jan Silver

USACO 2016 Jan Silver

## USACO 2016 Dec Silver

USACO 2016 Dec Silver

## USACO 2016 Open Silver

USACO 2016 Open Silver

## USACO 2019 Jan Bronze

USACO 2019 Jan Bronze

## USACO 2019 Dec Bronze

USACO 2019 Dec Bronze

## USACO 2018 Dec Bronze

USACO 2018 Dec Bronze

## USACO 2017 Jan Silver

USACO 2017 Jan Silver

## USACO 2015 Dec Silver

USACO 2015 Dec Silver

## USACO 2014 Dec Silver

USACO 2014 December Silver

## USACO 2014 Dec Gold

USACO 2014 December Gold

## USACO 2019 Jan Bronze

USACO 2019 Jan Bronze

Course Selection

## A Party Without a Boss

A Party Without a Boss

KK’s Chemicals

## Slicing Window Query: Min and Max of the Window

Slicing Window Query: Min and Max of the Window

## KMP Algorithm Explained

KMP Algorithm Explained

## Coordinate Compression: Range Sum

Coordinate Compression: Range Sum

## Interval DP: Scored Binary Tree

Interval DP: Bonus Binary Tree

## Interval DP Illustrated: Stone Merger

What is DP on Interval?

## DP Multiple Knapsack

DP Multiple Knapsack

## DP Mixed Knapsack

DP Mixed Knapsack Problem

## DP Finite Automata with Compression: Treasure Hunt

DP Finite Automata with Compression: Treasure Hunt

## DP Finite Automata with Compression: Password Counting

DP Finite Automata with Compression: Password Counting

## DP Finite Automata with Compression: DNA Repairing

DP Finite Automata with Compression: DNA Repairing

## DP Finite Automata with Compression: Little King

DP Finite Automata with Compression: Little King

## DP Finite Automata with Compression: Corn Yard

DP Finite Automata with Compression: Corn Yard

## DP Finite Automata with Compression: Artillery Position

DP Finite Automata with Compression: Artillery Position

## Group Knapsack Problem

Group Knapsack Problem

## Dynamic Programming: Number Combination

Dynamic Programming: Number Combination

## Dynamic Programming: Knapsack with Multiple Contstraits

Dynamic Programming: Knapsack with Multiple Contstraits

## Dynamic Programming: Currency System

Dynamic Programming: Currency System

## 0/1 Knapsack and UnBounded Knapsack Problem

0/1 Knapsack Problem

## Missile Defense System

Missile Defense System

## Dynamic Programming: Sister Cities

Dynamic Programming: Sister Cities

## Dynamic Programming: Chrous

Dynamic Programming: Chrous

## Dynmamic Programming: Passing Notes

Dynmamic Programming: Passing Notes (Chinese NOIP2008 Intermediate Q3)

## Dynamic Programming: Longest Increasing Subsequence O(NlogN) Algorithm

Longest Increasing Subsequence O(NlogN) Algorithm

## Dynamic Programming: Longest Increasing Subsequence

Longest Increasing Subsequence

## Dynamic Programming: Longest Common Subsequence

Longest Common Subsequence

## Dynmamic Programming: LCIS (Longest Common Increasing Sequence)

Dynmamic Programming: LCIS (Longest Common Increasing Sequence)

## USACO 2014 Jan Silver

USACO 2014 Jan Silver

## USACO 2014 Feb Silver

USACO 2014 Feb Silver

## USACO 2013 Open Silver

USACO 2013 Open Silver

## USACO 2013 Nov Silver

USACO 2013 Nov Silver

## USACO 2013 Mar Silver

USACO 2013 Mar Silver

## USACO 2013 Feb Silver

USACO 2013 Feb Silver

## USACO 2012 Nov Silver

USACO 2012 Nov Silver

## USACO 2012 Dec Silver

USACO 2012 Dec Silver

## USACO 2011 Nov Silver

USACO 2011 Nov Silver

## Floodfill

less than 1 minute read

Floodfill (Recursive)

## Sorting and Custom Comparators

less than 1 minute read

Sorting with C++ Struct

Tree Algorithms

Binary Search

## C. Maximum Median

C. Maximum Median

## Bitwise Operations and Subset Algorithms

Bitwise Operations and Subset Algorithms

Grid Paths

## An Impassioned Circulation of Affection

C. An Impassed Circulation of Affection

## Binary Search Examples

Binary Search Examples

## USACO 2014 Dec Silver

USACO 2014 December Silver

## USACO 2015 Feb Bronze

USACO 2015 Feb Bronze

## USACO 2016 Dec Bronze

USACO 2016 Dec Bronze

## USACO 2013 Nov Bronze

USACO 2013 Nov Bronze

## USACO 2017 Open Bronze

USACO 2017 Open Bronze

## USACO 2017 Feb Bronze

USACO 2017 Feb Bronze

## USACO 2017 Dec Bronze

USACO 2017 Dec Bronze

## USACO 2017 Jan Bronze

USACO 2017 Jan Bronze

## USACO 2017 Jan Bronze

USACO 2017 Jan Bronze

## USACO 2015 Feb Bronze

USACO 2015 Feb Bronze

## USACO 2018 Open Bronze

USACO 2018 Open Bronze

## USACO 2019 Dec Bronze

USACO 2019 Dec Bronze

## USACO 2018 Dec Bronze

USACO 2018 Dec Bronze

Project 1: Pong

## Mnemonic Generation (BIP39) Algorithm

Mnemonic Generation (BIP39) Algorithm Mnemonic a tool that helps you remember an idea or phrase with a pattern of letters. This article explains the Mnemonic...

## Recursion vs. Dynamic Programming Using a Question from AMC8

Recursion vs. Dynamic Programming Using a Question from AMC8

Project 2: Snake

## Project 3: Guess The Number

less than 1 minute read

Project 3: Guess The Number

## Project 4: Rock Paper Scissors

Project 4: Rock Paper Scissors

## Simple Substitution Cipher

less than 1 minute read

Simple Substitution Cipher Simple Substitution Cipher differs from Caesar Cipher in that the cipher alphabet is not simply shifted, it uses a look up table (...

## Rail-fence Cipher

Rail-fence Cipher The rail fence cipher is a very simple cipher. It transposes the plaintext to form the cipher text. It can be combined with other ciphers, ...

## Basic Math in Programming

Basic Math in Programming

## Function Argument Passing in Python

Function Argument Passing in Python

## Project Euler in Python Series 1

Project Euler in Python Series 1

## Enigma Machine in Python

Enigma Machine in Python

## Caesar Cipher

less than 1 minute read

Caesar Cipher In cryptography, a Caesar cipher is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in whi...

## Modeling a Cannon using Python

Modeling a cannon using Python

## Two Dimensional Motion

Two Dimensional Motion

## Prime Numbers with Sieve of Eratosthenes

Generating Prime Numbers using Sieve of Eratosthenes algorithm

## One Dimensional Motion

One Dimensional Motion

Selection Sort

Quick Short

Binary Search

## Introduction to Python Lesson 1: Variables and Print

Introduction to Python Lesson 1: Variables and Print

## Conway’s Game of Life

Conway’s Game of Life

## Introduction to Python Lesson 2: Statement and Flow Control

Introduction to Python Lesson 2: Statement and Flow Control

## Introduction to Python Lesson 3: List and Loops

Introduction to Python Lesson 3: List and Loops

## Introduction to Python Lesson 4: Turtle Graphics

Introduction to Python Lesson 4: Turtle Graphics

## Introduction to Python Lesson 5: Collections and Functions

Introduction to Python Lesson 5: Collections and Functions

## Project Euler in Python Series 2

Project Euler in Python Series 2

## Project Euler in Python Series 3

less than 1 minute read

Project Euler in Python Series 3

Course Selection

## A Party Without a Boss

A Party Without a Boss

KK’s Chemicals

## Interval DP: Scored Binary Tree

Interval DP: Bonus Binary Tree

## Interval DP Illustrated: Stone Merger

What is DP on Interval?

## DP Multiple Knapsack

DP Multiple Knapsack

## DP Mixed Knapsack

DP Mixed Knapsack Problem

## DP Finite Automata with Compression: Treasure Hunt

DP Finite Automata with Compression: Treasure Hunt

## DP Finite Automata with Compression: Password Counting

DP Finite Automata with Compression: Password Counting

## DP Finite Automata with Compression: DNA Repairing

DP Finite Automata with Compression: DNA Repairing

## DP Finite Automata with Compression: Little King

DP Finite Automata with Compression: Little King

## DP Finite Automata with Compression: Corn Yard

DP Finite Automata with Compression: Corn Yard

## DP Finite Automata with Compression: Artillery Position

DP Finite Automata with Compression: Artillery Position

## Group Knapsack Problem

Group Knapsack Problem

## Dynamic Programming: Number Combination

Dynamic Programming: Number Combination

## Dynamic Programming: Knapsack with Multiple Contstraits

Dynamic Programming: Knapsack with Multiple Contstraits

## Dynamic Programming: Currency System

Dynamic Programming: Currency System

## 0/1 Knapsack and UnBounded Knapsack Problem

0/1 Knapsack Problem

## Dynamic Programming: Sister Cities

Dynamic Programming: Sister Cities

## Dynamic Programming: Chrous

Dynamic Programming: Chrous

## Dynmamic Programming: Passing Notes

Dynmamic Programming: Passing Notes (Chinese NOIP2008 Intermediate Q3)

## Dynamic Programming: Longest Increasing Subsequence O(NlogN) Algorithm

Longest Increasing Subsequence O(NlogN) Algorithm

## Dynamic Programming: Longest Increasing Subsequence

Longest Increasing Subsequence

## Dynamic Programming: Longest Common Subsequence

Longest Common Subsequence

## Dynmamic Programming: LCIS (Longest Common Increasing Sequence)

Dynmamic Programming: LCIS (Longest Common Increasing Sequence)

## An Impassioned Circulation of Affection

C. An Impassed Circulation of Affection

## USACO 2016 Open Silver

USACO 2016 Open Silver

## Maximum Subarray Sum

Maximum Subarray Sum

Unique Paths II

## Longest Increasing Subsequence

less than 1 minute read

Longest Increasing Subsequence

House Robber

Climbing Stairs

## Best Time to Buy and Sell Stock

Best Time to Buy and Sell Stock

## Recursion vs. Dynamic Programming Using a Question from AMC8

Recursion vs. Dynamic Programming Using a Question from AMC8

Graph Algorithms

## Maximum Subarray Sum

Maximum Subarray Sum

Prefix Sum

Monotonous Stack

## USACO 2014 Dec Silver

USACO 2014 December Silver

## USACO 2014 Dec Gold

USACO 2014 December Gold

Subsets

## Permutations

less than 1 minute read

Permutations

## Palindrome Partitioning

Palindrome Partitioning

Combination Sum

Unique Paths II

## Longest Increasing Subsequence

less than 1 minute read

Longest Increasing Subsequence

House Robber

Climbing Stairs

## Best Time to Buy and Sell Stock

Best Time to Buy and Sell Stock

BFS Distance

## Greedy: Boyer-Moore’s Majority Vote

Boyer-Moore’s Majority Vote Algorithm

## Tree Traversal

Tree Traversal Algorithm

## Greedy: Dijkstra’s Shortest Path

Dijkstra’s Shortest Path

## Backtracking: Knights Tour Algorithm

Knights Tour Algorithm

## Backtracking: Hamiltonean Cycles Algorithm

Hamiltonean Cycles

Flood Fill

Merge Sort

## USACO 2019 Gold December P2 Milk Visits

USACO 2019 Gold December P2 Milk Visits

## USACO 2020 Gold Open P1. Cow Haircut

USACO 2019 February Contest, Gold P1. Cow Land

## USACO 2020 Gold Open P1. Cow Haircut

USACO 2020 Gold Open P1: Cow Haircut

## USACO 2018 Gold US Open P2. Milking Order

USACO 2018 Gold US Open P2. Milking Order

## USACO 2021 Gold Open Q2. Portals

USACO 2021 Gold Open Q2. Portals

## USACO 2021 Gold January P2. Telephone

USACO 2021 Gold January P2: Telephone

## USACO 2019 Gold January P2. Sleepy Cow Herding

less than 1 minute read

USACO 2019 Gold January P2: Sleepy Cow Herding

## USACO 2018 Gold US Open P3. Talent Show

less than 1 minute read

USACO 2018 Gold US Open P3: Talent Show

## USACO 2018 Gold February P3. Taming the Herd

less than 1 minute read

USACO 2018 Gold February P3. Taming the Herd

## USACO 2018 Gold December P3. Teamwork

less than 1 minute read

USACO 2018 Gold December P3. Teamwork

## USACO 2017 Gold January P2. Hoof, Paper, Scissors

less than 1 minute read

USACO 2017 Gold January P2: Hoof, Paper, Scissors

## USACO 2017 Gold February P2. Why Did the Cow Cross the Road II

less than 1 minute read

USACO 2017 Gold February P2. Why Did the Cow Cross the Road II

## USACO 2017 Gold December P3. Haybale Feast

less than 1 minute read

USACO 2017 Gold December P3: Haybale Feast

## USACO 2017 Gold December P2. Barn Painting

less than 1 minute read

USACO 2017 Gold December P3: Barn Painting

## USACO 2016 Gold US Open P2. Closing the Farm

less than 1 minute read

USACO 2016 Gold US Open P2: Closing the Farm

## USACO 2016 Gold January P2. Radio Contact

less than 1 minute read

USACO 2016 Gold January P2: Radio Contact

## USACO 2016 Gold December P2. Cow Checklist

less than 1 minute read

USACO 2016 Gold December Q2: Cow Checklist

## USACO 2018 Gold December Q3. Teamwork

less than 1 minute read

USACO 2018 Gold December Q3. Teamwork

## USACO 2021 Gold Open Q2. Portals

USACO 2021 Gold Open Q2. Portals

## USACO 2021 Gold Open Q1. United Cows of Farmer John

USACO 2021 Gold Open Q1. United Cows of Farmer John

## USACO 2017 Gold January P3. Cow Navigation

USACO 2017 Gold January P3. Cow Navigation

## USACO 2016 Gold December P3. Lasers and Mirrors

USACO 2016 Gold December P3. Lasers and Mirrors

## USACO 2021 Silver January P3. Spaced Out

USACO 2021 Silver January P3: Spaced Out

## USACO 2021 Silver January P1. Dance Mooves

USACO 2021 Silver January P1: Dance Mooves

## USACO 2021 Silver February P2. Year of the Cow

less than 1 minute read

USACO 2021 Silver February P2. Year of the Cow

## USACO 2020 Silver US Open P2. Cereal

USACO 2020 Silver US Open P2: Cereal

## USACO 2020 Silver US Open P1. Social Distancing

USACO 2020 Silver US Open P1: Social Distancing

## USACO 2020 Silver December P3. Stuck in a Rut

less than 1 minute read

USACO 2020 Silver December P3: Stuck in a Rut

## USACO 2020 Silver December P2. Rectangular Pasture

less than 1 minute read

USACO 2020 Silver December P2: Rectangular Pasture

## USACO 2020 Silver December P1. Cowntagion

less than 1 minute read

USACO 2020 Silver December P1: Cowntagion

## USACO 2019 Silver December P2. Meetings

less than 1 minute read

USACO 2019 Silver December P2: Meetings

## USACO 2015 Silver US Open P3. Bessie’s Birthday Buffet

less than 1 minute read

USACO 2015 Silver US Open P3. Bessie’s Birthday Buffet

## USACO 2015 Silver January P3. Meeting Time

less than 1 minute read

USACO 2015 Silver January P3. Meeting Time

## USACO 2015 Silver January P2. Cow Routing

less than 1 minute read

USACO 2015 Silver January P2: Cow Routing

## USACO 2015 Silver January P1. Stampede

less than 1 minute read

USACO 2015 Silver January P1: Stampede

## USACO 2015 Silver February P3. Superbull

less than 1 minute read

USACO 2015 Silver February P3: Superbull

## USACO 2015 Silver February P2. Cow Hopscotch

less than 1 minute read

USACO 2015 Silver February P2: Cow Hopscotch

## USACO 2013 Silver November P3. Pogo-Cow

less than 1 minute read

USACO 2013 Silver November P3. Pogo-Cow

## USACO 2013 Silver March P3. The Cow Run

less than 1 minute read

USACO 2013 Silver March P3: The Cow Run

## USACO 2018 US Open P3 Disruption

USACO 2018 Platinum US Open P3 Disruption

## USACO 2018 US Open P3 Disruption

USACO 2018 Platinum US Open P3 Disruption

## USACO 2015 Gold February P1. Cow Hopscotch

USACO 2015 Gold February P1: Cow Hopscotch

## USACO 2016 Platinum Open P1. 262144

less than 1 minute read

USACO 2016 2016 Platinum Open P1. 262144

## USACO 2019 Platinum January P3. Train Tracking 2

USACO 2019 Platinum January P3: Train Tracking 2

Cow Hopscotch

## IOI 2003 Seeing the Boundary

IOI 2003 Seeing the Boundary [Memory: 32 MB CPU: 2 sec]

## USACO 2017 Platinum January P1. Promotion Counting

USACO 2017 Platinum January P1. Promotion Counting

## USACO 2014 Gold December P1. Guard Mark

USACO 2014 Gold December P1. Guard Mark

## USACO 2015 Gold January P2. Moovie Mooving

USACO 2015 Gold January P2. Moovie Mooving

## USACO 2014 Gold November P1. Balanced Cow Breeds

USACO 2014 Gold November P1. Balanced Cow Breeds

## USACO 2010 Gold January P1. Taking Turns

USACO 2010 Gold January P1. Taking Turns

## USACO 2020 Bronze December P2. Even More Odd Photos

USACO 2020 Bronze December P2. Even More Odd Photos

## USACO 2020 Bronze December P3. Stuck in a Rut

USACO 2020 Bronze December P3. Stuck in a Rut

## USACO 2019 Bronze December P3. Livestock Lineup

USACO 2019 Bronze December P3. Livestock Lineup

## USACO 2017 Bronze January P3. Cow Tipping

USACO 2017 Bronze January P3. Cow Tipping

## USACO 2018 Bronze December P1. Mixing Milk

USACO 2018 December Contest, Bronze

## USACO 2021 Bronze January P3. Just Stalling

less than 1 minute read

USACO 2021 Bronze January P3: Just Stalling

## USACO 2021 Bronze January P2. Even More Odd Photos

less than 1 minute read

USACO 2021 Bronze January P2: Even More Odd Photos

## USACO 2021 Bronze February P3. Clockwise Fence

less than 1 minute read

USACO 2021 Bronze February P3. Clockwise Fence

## 0/1 Knapsack and UnBounded Knapsack Problem

0/1 Knapsack Problem

Subsets

## Permutations

less than 1 minute read

Permutations

## Palindrome Partitioning

Palindrome Partitioning

Combination Sum

## Backtracking: Knights Tour Algorithm

Knights Tour Algorithm

## Backtracking: Hamiltonean Cycles Algorithm

Hamiltonean Cycles

## DP Finite Automata with Compression: Treasure Hunt

DP Finite Automata with Compression: Treasure Hunt

## DP Finite Automata with Compression: Password Counting

DP Finite Automata with Compression: Password Counting

## DP Finite Automata with Compression: DNA Repairing

DP Finite Automata with Compression: DNA Repairing

## DP Finite Automata with Compression: Little King

DP Finite Automata with Compression: Little King

## DP Finite Automata with Compression: Corn Yard

DP Finite Automata with Compression: Corn Yard

## DP Finite Automata with Compression: Artillery Position

DP Finite Automata with Compression: Artillery Position

## Basic Math in Programming

Basic Math in Programming

## Project Euler in Python Series 1

Project Euler in Python Series 1

## Prime Numbers with Sieve of Eratosthenes

Generating Prime Numbers using Sieve of Eratosthenes algorithm

## Project Euler in Python Series 2

Project Euler in Python Series 2

## Project Euler in Python Series 3

less than 1 minute read

Project Euler in Python Series 3

Project 1: Pong

Project 2: Snake

## Project 3: Guess The Number

less than 1 minute read

Project 3: Guess The Number

## Project 4: Rock Paper Scissors

Project 4: Rock Paper Scissors

## Conway’s Game of Life

Conway’s Game of Life

## Mnemonic Generation (BIP39) Algorithm

Mnemonic Generation (BIP39) Algorithm Mnemonic a tool that helps you remember an idea or phrase with a pattern of letters. This article explains the Mnemonic...

## Simple Substitution Cipher

less than 1 minute read

Simple Substitution Cipher Simple Substitution Cipher differs from Caesar Cipher in that the cipher alphabet is not simply shifted, it uses a look up table (...

## Rail-fence Cipher

Rail-fence Cipher The rail fence cipher is a very simple cipher. It transposes the plaintext to form the cipher text. It can be combined with other ciphers, ...

## Enigma Machine in Python

Enigma Machine in Python

## Caesar Cipher

less than 1 minute read

Caesar Cipher In cryptography, a Caesar cipher is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in whi...

## USACO 2007 March Gold P3: Face The Right Way

USACO 2007 March Gold P3: Face The Right Way

## Bitwise Operations and Subset Algorithms

Bitwise Operations and Subset Algorithms

Graph Algorithms

BFS Distance

## DP Multiple Knapsack

DP Multiple Knapsack

## DP Mixed Knapsack

DP Mixed Knapsack Problem

## Group Knapsack Problem

Group Knapsack Problem

## 0/1 Knapsack and UnBounded Knapsack Problem

0/1 Knapsack Problem

## Project Euler in Python Series 1

Project Euler in Python Series 1

## Project Euler in Python Series 2

Project Euler in Python Series 2

## Project Euler in Python Series 3

less than 1 minute read

Project Euler in Python Series 3

## Modeling a Cannon using Python

Modeling a cannon using Python

## Two Dimensional Motion

Two Dimensional Motion

## One Dimensional Motion

One Dimensional Motion

## Slicing Window Query: Min and Max of the Window

Slicing Window Query: Min and Max of the Window

## KMP Algorithm Explained

KMP Algorithm Explained

Monotonous Stack

## USACO 2005 December Gold P3: Layout

USACO 2005 December Gold P3: Layout

## An Impassioned Circulation of Affection

C. An Impassed Circulation of Affection

## USACO 2016 Open Silver

USACO 2016 Open Silver

## Missile Defense System

Missile Defense System

Tree Algorithms

Grid Paths

Tree Algorithms

## USACO 2019 Feb Silver

USACO 2019 Feb Silver

Graph Algorithms

## Greedy: Boyer-Moore’s Majority Vote

Boyer-Moore’s Majority Vote Algorithm

## Greedy: Dijkstra’s Shortest Path

Dijkstra’s Shortest Path

Tree Algorithms

## Tree Traversal

Tree Traversal Algorithm

## Maximum Subarray Sum

Maximum Subarray Sum

Prefix Sum

## USACO 2019 Feb Silver

USACO 2019 Feb Silver

Graph Algorithms

## DP Multiple Knapsack

DP Multiple Knapsack

## DP Mixed Knapsack

DP Mixed Knapsack Problem

## Interval DP: Scored Binary Tree

Interval DP: Bonus Binary Tree

## Interval DP Illustrated: Stone Merger

What is DP on Interval?

## Slicing Window Query: Min and Max of the Window

Slicing Window Query: Min and Max of the Window

## KMP Algorithm Explained

KMP Algorithm Explained

Course Selection

## A Party Without a Boss

A Party Without a Boss

Sum of digits

## Japan 2005 Domestic: Traveling by Stagecoach

Japan 2005 Domestic: Traveling by Stagecoach

## Japan 2005 Domestic: Traveling by Stagecoach

Japan 2005 Domestic: Traveling by Stagecoach

## Central Europe 2003: Minimizing maximizer

Central Europe 2003: Minimizing maximizer

## USACO 2013 Open P1: Photo

USACO 2013 US Open, Gold Problem 1. Photo

## Dynamic Range Minimum Queries

CSES 1649: Dynamic Range Minimum Queries

## USACO 2019 Jan Bronze

USACO 2019 Jan Bronze

## Recursion vs. Dynamic Programming Using a Question from AMC8

Recursion vs. Dynamic Programming Using a Question from AMC8

## Sorting and Custom Comparators

less than 1 minute read

Sorting with C++ Struct

## Coordinate Compression: Range Sum

Coordinate Compression: Range Sum

## USACO 2007 March Gold P3: Face The Right Way

USACO 2007 March Gold P3: Face The Right Way

KK’s Chemicals