Complete Beginner Roadmap

Master the core programming skills needed for success in college coursework and personal projects

Programming Fundamentals for College & Side Projects

Focus on for-loops, arrays, and conditional logic - the building blocks of all programming.

Practice Environment

Use LeetCode Playground or your local IDE to write functions that accept parameters and test your solutions.

Get Help When Stuck

Use an LLM (like ChatGPT/Claude) to help with input parsing if needed, but focus on the core logic.

Core Skills Focus

For-loops, arrays, conditionals - the most important skills for college and side projects.

What Matters Most

Input parsing is less important - focus on problem-solving logic and algorithm thinking.

50

Fundamental Problems

Complete

Beginner Level

Filter by Difficulty

Key Concepts

if-statements lists (arrays) input/output loops basic math basic math (addition)
ABC 415 Easy

Unsupported Type

Given a list of integers `arr` and a target integer `x`, check if `x` appears anywhere in `arr`. Return 'Yes' if found, 'No' if not. For example, if arr = [3, 1, 4] and x = 4, return 'Yes' because 4 is in the list.

Key Concepts:

if-statements lists (arrays) input/output
ABC 414 Easy

Streamer Takahashi

A streamer broadcasts from hour `stream_start` to hour `stream_end`. Each listener has a time window [start, end] they can watch. Count how many listeners can watch the entire stream (their start <= stream_start AND their end >= stream_end).

Key Concepts:

if-statements loops basic math
ABC 413 Easy

Content Too Large

Given a list of item sizes and a bag's maximum capacity, check if the total size of all items fits in the bag. Return 'Yes' if the sum of items <= bag_size, 'No' otherwise.

Key Concepts:

if-statements basic math (addition) input and output
ABC 412 Easy

Task Failed Successfully

Given two lists of equal length — `goals` (planned tasks per day) and `actual` (tasks completed per day) — count how many days Takahashi completed strictly more tasks than his goal. For example, goal=2 and actual=8 counts as exceeded.

Key Concepts:

if-statements loops basic math
ABC 411 Easy

Required Length

Given a password string and a minimum required length, check if the password has at least that many characters. Return 'Yes' if len(password) >= min_length, 'No' otherwise.

Key Concepts:

if-statements string length input and output
ABC 410 Easy

G1

Given a list of age limits for horse races and a horse's age `k`, count how many races the horse can enter. A horse can enter a race if its age is less than or equal to the race's age limit (k <= ages[i]).

Key Concepts:

lists loops conditional statements
ABC 409 Easy

Conflict

Takahashi and Aoki each want certain items. Their preferences are given as strings of 'o' (wants) and 'x' (doesn't want). Check if there's any position where both have 'o' — meaning they both want the same item. Return 'Yes' if a conflict exists, 'No' otherwise.

Key Concepts:

if-statements loops string manipulation
ABC 408 Easy

Timeout

An elder starts awake at time 0 and is tapped at times given in `taps`. The elder falls asleep if more than `s` seconds pass between consecutive taps (or from time 0 to the first tap). Return 'Yes' if the elder stays awake through all taps, 'No' if they ever fall asleep.

Key Concepts:

if-statements loops basic math
ABC 407 Easy

Approximation

Given two positive integers `a` and `b`, find the integer closest to a / b. For example, 4 / 7 ≈ 0.57, so the closest integer is 1. Use standard rounding (round half away from zero since b is always odd).

Key Concepts:

basic math finding the closest integer input and output handling
ABC 406 Easy

Not Acceptable

Check if a submission time (C:D) is strictly before a deadline (A:B), where times are in hours and minutes. Return 'Yes' if submitted before the deadline, 'No' otherwise. Compare hours first, then minutes.

Key Concepts:

if-statements comparison basic input/output
ABC 405 Easy

Is it rated?

Check if a contestant's rating is 'rated' in a given division. Division 1 is rated for ratings 1600–2999. Division 2 is rated for ratings 1200–2399. Return 'Yes' if the rating falls in the range for the given division, 'No' otherwise.

Key Concepts:

if-statements comparison operators input/output
ABC 404 Easy

Not Found

Given a string of lowercase English letters, find and return one letter (a-z) that does NOT appear in the string. Any missing letter is a valid answer.

Key Concepts:

string manipulation loops conditional statements
ABC 403 Easy

Odd Position Sum

Given a list of integers, calculate the sum of elements at odd positions (1st, 3rd, 5th, etc. using 1-based indexing). For example, in [3, 1, 4, 1, 5], the elements at positions 1, 3, 5 are 3, 4, 5, so the sum is 12.

Key Concepts:

lists loops basic math
ABC 402 Easy

CBC

Given a string containing both uppercase and lowercase letters, extract only the uppercase letters and return them as a new string in their original order. For example, 'AtCoderBeginnerContest' → 'ACBC'.

Key Concepts:

strings loops conditionals (if-statements)
ABC 401 Easy

Status Code

Given an HTTP status code (integer between 100–999), return 'Success' if it's between 200 and 299 (inclusive), or 'Failure' otherwise.

Key Concepts:

if-statements basic input/output number comparison
ABC 400 Easy

ABC400 Party

400 people need to sit in a rectangle with `a` rows. Calculate how many columns `b` are needed so that a × b = 400. If 400 is not divisible by a, return -1.

Key Concepts:

basic math if-statements input/output
ABC 399 Easy

Hamming Distance

Given two strings of equal length, count the number of positions where the characters differ. This is called the Hamming distance. For example, 'abcarc' vs 'agcahc' differ at positions 2 and 5, so the distance is 2.

Key Concepts:

loops conditional statements string manipulation
ABC 398 Easy

Doors in the Center

Create a palindrome string of length `n` using only '-' and '=' characters. If n is odd, place exactly one '=' in the center. If n is even, place exactly two '=' in the center. Fill the rest with '-'. For example, n=5 → '--=--', n=4 → '-==-'.

Key Concepts:

strings palindromes conditional statements
ABC 397 Easy

Thermometer

Classify a body temperature: return 1 if temperature >= 38.0 (high fever), 2 if >= 37.5 but < 38.0 (fever), or 3 if < 37.5 (normal).

Key Concepts:

if-statements comparison operators input and output
ABC 396 Easy

Triple Four

Given a list of integers, check if any value appears three or more times consecutively (in a row). Return 'Yes' if such a triple exists, 'No' otherwise. For example, [1, 4, 4, 4, 2] → 'Yes' because 4 appears three times in a row.

Key Concepts:

if-statements loops arrays/lists
ABC 395 Easy

Strictly Increasing?

Check if a list of integers is strictly increasing — meaning each element is strictly less than the next one. Return 'Yes' if strictly increasing, 'No' otherwise. Note: equal consecutive values (like [1, 1, 2]) are NOT strictly increasing.

Key Concepts:

if-statements loops lists/arrays
ABC 394 Easy

22222

Given a string of digits, remove every character that is not '2' and return the remaining string. For example, '20250222' → '22222'.

Key Concepts:

string manipulation loops conditional statements
ABC 393 Easy

Poisonous Oyster

Two people ate different combinations of 4 oyster types. Person 1 ate types 1 and 2. Person 2 ate types 1 and 3. Exactly one type is poisonous. Based on whether each person felt 'sick' or 'fine', determine which oyster type (1, 2, 3, or 4) is poisonous.

Key Concepts:

if-statements conditional logic input and output
ABC 392 Easy

Shuffled Equation

Given three integers a, b, c, check if any arrangement of them satisfies the equation: one number × another number = the third number. Return 'Yes' if possible, 'No' otherwise. For example, (3, 15, 5) → 'Yes' because 3 × 5 = 15.

Key Concepts:

if-statements loops basic math
ABC 391 Easy

Lucky Direction

Given a compass direction as a string (like 'N', 'SE', 'NW'), return the opposite direction. Swap N↔S and E↔W. For example, 'SE' → 'NW', 'N' → 'S'.

Key Concepts:

if-statements string manipulation input and output
ABC 390 Easy

12435

Given a list of 5 integers (a permutation of 1-5), check if you can sort it in ascending order by swapping exactly one pair of adjacent elements. Return 'Yes' if exactly one adjacent swap produces [1,2,3,4,5], 'No' otherwise.

Key Concepts:

if-statements arrays/lists swapping elements
ABC 389 Easy

9x9

Given a string in the format 'AxB' where A and B are single digits (1-9), return their product A × B as an integer. For example, '3x8' → 24.

Key Concepts:

string manipulation basic math input/output
ABC 388 Easy

?UPC

Take the first character of the input string and append 'UPC' to it. Return the result. For example, 'Kyoto' → 'KUPC'.

Key Concepts:

string manipulation concatenation input/output
ABC 387 Easy

Happy New Year 2025

Given two positive integers a and b, calculate (a + b)². Return the result. For example, square_of_sum(20, 25) = (20+25)² = 45² = 2025.

Key Concepts:

basic math input/output variables
ABC 386 Easy

Full House 2

Given 4 card values, determine if adding exactly one more card can form a Full House (three of one value + two of another). Return 'Yes' if possible, 'No' otherwise. For example, [7,7,7,1] → 'Yes' (add another 1 to get 7,7,7,1,1).

Key Concepts:

if-statements basic condition checking input and output
ABC 385 Easy

Equally

Given three integers a, b, c, check if they can be split into two or more groups where each group has the same sum. For example, (3, 8, 5) → 'Yes' because {3,5} and {8} both sum to 8.

Key Concepts:

if-statements basic math input/output handling
ABC 384 Easy

aaaadaa

Given a string `s`, a character to keep `c1`, and a replacement character `c2`, replace every character in s that is NOT c1 with c2. Return the modified string. For example, s='atcoder', c1='d', c2='a' → 'aaaadaa'.

Key Concepts:

string manipulation loops conditionals
ABC 383 Easy

Humidifier 1

A humidifier starts empty. Water is added at specific times (given as (time, volume) pairs). Between additions, water decreases by 1 unit per time unit (but never below 0). Calculate the water remaining after the last addition.

Key Concepts:

variables loops basic math
ABC 382 Easy

Daily Cookie

Given a string of boxes where '@' = cookie and '.' = empty, Takahashi eats one cookie per day for `d` days. Count how many boxes will be empty after d days. Empty boxes = original empty boxes + d cookies eaten.

Key Concepts:

Strings Loops Counting
ABC 381 Easy

11/22 String

Check if a string made of '1', '2', and '/' is an 11/22 string. Rules: odd length, the first half is all '1's, the exact middle character is '/', and the second half is all '2's. Return 'Yes' or 'No'. Example: '11/22' → 'Yes', '/' → 'Yes'.

Key Concepts:

if-statements string manipulation length of strings
ABC 380 Easy

123233

Check if a 6-digit number contains exactly one '1', exactly two '2's, and exactly three '3's (and no other digits). Return 'Yes' if it does, 'No' otherwise.

Key Concepts:

if-statements counting characters basic input/output
ABC 379 Easy

Cyclic

Given a 3-digit number with digits a, b, c, create two new numbers by cyclically rearranging: bca and cab. Return them as a space-separated string. For example, 379 → '793 937'.

Key Concepts:

String manipulation Indexing Basic input/output
ABC 378 Easy

Pairing

Given a list of 4 ball colors (as integers), find the maximum number of pairs you can form. A pair is two balls of the same color. For example, [2,1,2,1] → 2 pairs (one pair of 1s, one pair of 2s).

Key Concepts:

arrays or lists counting basic math
ABC 377 Easy

Rearranging ABC

Check if a 3-character string can be rearranged to spell 'ABC'. Return 'Yes' if it contains exactly one A, one B, and one C; 'No' otherwise.

Key Concepts:

if-statements string manipulation comparison
ABC 376 Easy

Candy Button

A button is pressed at times given in list `t`. A candy is dispensed only if at least `c` seconds have passed since the last candy was given (first press always gives a candy). Count the total candies received.

Key Concepts:

if-statements loops basic math
ABC 375 Easy

Seats

Given a string of seats where '#' = occupied and '.' = empty, count how many times the pattern '#.#' appears — a person in seat i, empty seat i+1, and a person in seat i+2.

Key Concepts:

if-statements loops string manipulation
ABC 374 Easy

Takahashi san 2

Check if a string (lowercase English letters only) ends with the suffix 'san'. Return 'Yes' if the last 3 characters are 'san', 'No' otherwise.

Key Concepts:

if-statements string manipulation output
ABC 373 Easy

September

Given a list of 12 words, count how many have a length equal to their position (1-indexed). The 1st word should have length 1, the 2nd length 2, etc. For example, 'september' at position 9 has length 9, so it counts.

Key Concepts:

loops if-statements basic string manipulation
ABC 372 Easy

delete .

Remove all dot characters ('.') from the input string and return the result. Only dots are removed; all other characters stay. For example, '.v.' → 'v'.

Key Concepts:

string manipulation input and output loops
ABC 371 Easy

Jiro

Three brothers A, B, C have their ages compared in 3 pairs: A vs B, A vs C, B vs C. Each comparison is '<' (first is younger) or '>' (first is older). Determine which brother is the second oldest and return 'A', 'B', or 'C'.

Key Concepts:

if-statements comparison operators conditional logic
ABC 370 Easy

Raise Both Hands

Snuke raises hands to signal: left hand only (L=1, R=0) → 'Yes' (wants takoyaki), right hand only (L=0, R=1) → 'No' (doesn't want it), both or neither → 'Invalid'.

Key Concepts:

if-statements input and output conditional logic
ABC 369 Easy

369

Given two integers a and b, count how many integers x exist such that a, b, and x can be arranged to form an arithmetic sequence (equal spacing between consecutive terms). For example, a=5, b=7 → 3 values: x=3, x=6, or x=9.

Key Concepts:

Basic arithmetic Condition checking Looping through possible values
ABC 368 Easy

Cut

Given a list of cards and an integer k, move the bottom k cards to the top of the stack. Return the new order as a space-separated string. For example, cards=[1,2,3,4,5], k=3 → '3 4 5 1 2'.

Key Concepts:

arrays/lists slicing input/output
ABC 367 Easy

Shout Everyday

Takahashi sleeps from hour `a` to hour `b` (may wrap past midnight). Determine if he is awake at hour `c`. Return 'Yes' if awake (not during sleep hours), 'No' if asleep.

Key Concepts:

if-statements basic comparisons input and output
ABC 366 Easy

Election 2

In an election with `n` total voters, Takahashi has `t` votes and Aoki has `a` votes so far. Determine if the winner is already certain — meaning even if all remaining votes (n - t - a) go to the losing candidate, they still can't catch up. Return 'Yes' if decided, 'No' otherwise.

Key Concepts:

if-statements basic math input handling

Your Learning Progress

0 / 50 completed

0

Easy Completed

0

Medium Completed

0

Hard Completed

0

Day Streak