🧠 Engineering Culture

AtCoder ABC452 A-D: From Festival Dates to Subsequence Counts, Dissected

AtCoder's Beginner Contest 452 packed 10,000+ coders into a 2-hour sprint across four problems. But problem D—with strings up to 200k chars—exposed how thin the line is between AC and TLE.

AtCoder ABC452 problems A-D with Python code snippets and complexity graphs

⚡ Key Takeaways

  • ABC452 D risks O(n^2) in subseq check but often passes—audit complexities. 𝕏
  • Precompute sets turn C's existence queries into O(1) lookups. 𝕏
  • Problems build from O(1) to O(n m) with m=2e5, training real constraints. 𝕏
Published by

Dev Digest

Ship faster. Build smarter.

Worth sharing?

Get the best Developer Tools stories of the week in your inbox — no noise, no spam.

Originally reported by dev.to

Stay in the loop

The week's most important stories from Dev Digest, delivered once a week.