ZestyNoodle
ZestyNoodle
Student

CP DAY-3

Today, I tackled the "Cover in Water" problem on Code forces. QUESTION:-Filip has a row of cells—some are blocked, and some are empty. He wants to fill all empty cells with water using two actions:

  1. Place water in an empty cell.
  2. Move water from one cell to another empty cell. An empty cell will automatically fill with water if it is flanked by water on both sides. ➡️ What is the minimum number of times Filip needs to perform action 1 to ensure all empty cells are filled? How would you approach solving this optimization problem? 🤔💡
Post image 1
Post image 2
Post image 3
Post image 4
7mo ago
Talking product sense with Ridhi
9 min AI interview5 questions
Round 1 by Grapevine
No comments yet

You're early. There are no comments yet.

Be the first to comment.

Discover more
Curated from across
Misc
Misc15mo
by SparklyKoalaOracle

Stupid question asked in interview.

I was recently called for an interview, and the interviewer asked me a puzzle. It goes something like this:

"You have two containers, C1 and C2, both filled with equal volumes of oil and water, respectively (i.e., C1 -> oil volume V and...

Top comment
user

Use docker, all container problems will be solved.

Software Engineers
by DizzyLlamaSwiggy

Does LeetCoders Give you FOMO

I was recently scrolling through linkedin as a regular day to find my daily dose of depression

And Suddenly I saw a profile of x Person who started his engineering in July 2023 has 500+ LC Problems solved a CI/CD pipeline set up proje...

Software Engineers
by GigglyHamsterStudent

To folks who can solve LC Hards

What did it take to get to that point? I'm reasonably comfortable with mediums but hard problems feel like a few notches above in difficulty. Should I find the equivalent rating of mediums on codeforces and work from there? Or is it bett...