gemechualemu's blog

By gemechualemu, history, 9 days ago, In English

FOCUS-ASTU-TECH-COMMUNITY-CONTEST-3

Hello everyone!

Welcome to the editorial for our mashup contest. We selected a mix of Arrays, HashMaps, Math, Strings, Sliding Window and Prefix Sum problems. The goal was to strengthen logical thinking and problem-solving skills without getting bogged down in complex data structures.

Below you will find hints, tutorials, and solutions for each problem. We used spoiler tags to keep things clean. Try to solve it yourself before clicking!

Happy coding!

Problem-A:688129A - Yes-Yes?

Tags: implementation strings
Difficulty: ⭐️ (Very Easy)

This is a simple pattern-checking problem that tests your understanding of strings and substrings.

Understanding the Problem
Hint
Tutorial
Solution (Python)

Problem-B:688129B - Twice

Tags: implementation math
Difficulty: ⭐️ (Very Easy)

This is a very simple counting problem.

Understanding the Problem
Hint
Tutorial
Solution (Python)

Problem-C:688129C - Odd Selection

Tags: brute force implementation math sliding window
Difficulty: ⭐️⭐️ (Easy)

This is a parity-based selection problem that can be solved using counting and simple constraints.

Understanding the Problem
Hint 1
Hint 2
Hint 3 (Important)
Tutorial
Solution (Python)

Problem-D:688129D - Ilya and Queries

Tags: implementation data structures DP prefix sum
Difficulty: ⭐️⭐️⭐️ (Medium)

This is a classic prefix sum problem that allows answering range queries efficiently.

Understanding the Problem
Hint 1
Hint 2
Hint 3 (Important)
Tutorial
Solution (Python)

Problem-E:688129E - Karen and Coffee

Tags: implementation data structures prefix sum binary search
Difficulty: ⭐️⭐️⭐️ (Medium)

This is a prefix sum + difference array problem that efficiently handles range updates and queries.

Understanding the Problem
Hint 1
Hint 2
Hint 3 (Important)
Tutorial
Solution (Python)

Full text and comments »

  • Vote: I like it
  • -5
  • Vote: I do not like it

By gemechualemu, history, 4 weeks ago, In English

FOCUS-ASTU-TECH-COMMUNITY-CONTEST-1

Hello everyone!

Welcome to the editorial for our mashup contest. We selected a mix of implementation, strings, greedy, and two-pointer problems. The goal was to strengthen logical thinking and problem-solving skills without getting bogged down in complex data structures.

Below you will find hints, tutorials, and solutions for each problem. We used spoiler tags to keep things clean. Try to solve it yourself before clicking!

Happy coding!

Problem-A:682771A - Магниты

Tags: Implementation Simulation
Difficulty: ⭐️ (Very Easy)

This is a classic implementation problem that tests your ability to observe patterns in a sequence.

Understanding the Problem
Hint
Tutorial
Solution (Python)

Problem-B:682771B - Антон и Даник

Tags: Implementation Strings
Difficulty: ⭐️ (Very Easy)

This is a very simple counting problem.

Understanding the Problem
Hint
Tutorial
Solution (Python)

Problem-C:682771C - Serval и Инверсионная магия

Tags: Brute Force Implementation Strings Two Pointers
Difficulty: ⭐️⭐️ (Easy-Medium)

This is a clever implementation problem that requires careful observation and use of the two-pointer technique.

Understanding the Problem
Hint 1
Hint 2
Hint 3 (Important)
Tutorial
Solution (Python)

Problem-D:682771D - Скидки

Tags: Greedy Sorting Two Pointers
Difficulty: ⭐️⭐️ (Easy-Medium)

This is a classic greedy optimization problem that combines sorting with a two-pointer traversal to maximize savings.

Understanding the Problem
Hint 1
Hint 2
Hint 3 (Important)
Tutorial
Solution (Python)

Problem-E:682771E - Сломанная клавиатура

Tags: Brute Force Strings Two Pointers
Difficulty: ⭐️⭐️ (Easy-Medium)

This is a classic two pointers (grouping) problem where we process consecutive characters and use parity (odd/even length) to determine valid keys.

Understanding the Problem
Hint 1
Hint 2
Hint 3 (Important)
Tutorial
Solution (Python)

Problem-F:682771F - Сложный процесс

Tags: DP Sliding Window Two Pointers
Difficulty: ⭐️⭐️⭐️ (Medium)

This is a classic optimization problem that efficiently finds the longest valid subsegment using a sliding window approach.

Understanding the Problem
Hint 1
Hint 2
Hint 3 (Important)
Tutorial
Solution (Python)

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it