CP week 2

 This week, let’s level up:

  • Focus: More problem-solving stamina, pattern recognition, + intro to binary search, implementation, more greedy, and basic constructive algorithms.

  • Target: Solve 3–5 problems daily. Mix easy + a few moderate ones.


Day 1 – Brute Force & Implementation

📘 Focus: Try multiple ways to brute force a problem.

  • CF 977B – Two-gram (String scan + counting)

  • CF 750A – New Year and Hurry (simulation, conditionals)

  • CF 486A – Calculating Function (pattern math)

  • CF 131A – cAPS LOCK (string case manipulation)


Day 2 – Binary Search Intro

📘 Focus: Learn binary search on integers.

  • CF 706B – Interesting Drink (sort + lower_bound)

  • CF 977A – Wrong Subtraction (easy warm-up)

  • CF 115A – Party (trees, brute force depth)

  • CF 996A – Hit the Lottery (greedy)


Day 3 – Greedy: Picking Best Steps

📘 Focus: Sort & choose steps carefully.

  • CF 935A – Fafa and his Company (divisors)

  • CF 476A – Dreamoon and Stairs (brute force range)

  • CF 271A – Beautiful Year (increment + check)

  • CF 268A – Games (nested loops, counting)


Day 4 – Constructive Algorithms

📘 Focus: Problems where you must build a valid solution.

  • CF 34A – Reconnaissance 2 (adjacent pairs)

  • CF 1154A – Restoring Three Numbers (find original numbers)

  • CF 520A – Pangram (check all letters)

  • CF 723A – The New Year Meeting Friends (median)


Day 5 – Frequency & Maps

📘 Focus: Practice counting elements smartly.

  • CF 268B – Buttons (sum of series)

  • CF 978B – File Name (remove characters)

  • CF 141A – Amusing Joke (anagram + frequency)

  • CF 1419A – Digit Game (greedy + parity)


Day 6 – Practice + Timed Mini-Contest

📘 Focus: Simulate stress, solve 5 in one sitting (~90 mins).
Pick any mix from Days 1–5, or try:

  • CF 9A – Die Roll (fractions, gcd)

  • CF 467A – George and Accommodation (if-else)

  • CF 486A – Calculating Function (patterns)

  • CF 69A – Young Physicist (revisit)

  • CF 617A – Elephant (greedy steps)


Day 7 – Review & Re-attempt

📘 Focus: Redo any failed or partially solved problems.

  • Take notes on patterns that repeat.

  • Summarize the types: brute force, math, frequency, sorting, binary search.

Comments

Popular posts from this blog

Phy 129 - WM, CT-03

Online 3 CSE 102; Array Resources.