DEV Community

Mukilan Palanichamy
Mukilan Palanichamy

Posted on

My journey in Competitive Programming

Today's Learnings: Palindrome Partitioning and Word Search

Hi, folks

I had an exciting couple of problems I have done, which really exercised my skills in solving problems today, Palindrome Partitioning and Word Search. So here is what I did for them:

Palindrome Partitioning

I began with Palindrome Partitioning. The task given was to partition a string into substrings such that every substring was a palindrome. The key in that was that a palindrome is a string that reads exactly the same forwards and backwards, and like "racecar." When working on this problem I was using backtracking techniques in order to find how it could be divided all the possible ways to confirm each part was a palindrome then continue on the others. It was a fun and challenging problem, and I learned how to use backtracking to break up a problem into manageable, smaller parts.

Image description

Word Search

I had Word Search, where the problem is to find a word in a 2D grid of characters. The word can be formed by connecting adjacent cells horizontally or vertically. I applied Depth First Search to scan the grid, searching for possible word formations starting from every position. I learned to search efficiently within the grid by marking visited cells and backtracking if a dead-end is encountered. This problem assisted me in the practice of depth-first search and in thinking how to explore a grid in all directions.

Image description

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay