Tip 1: Practice 5 questions daily.
Tip 2: Follow PYQs.
Tip 3: Set a time limit and solve within that time.
Tip 1: Use a two-column resume.
Tip 2: Add company-domain and interest-specific projects.

A center cell grid[r][c] which must be 1.
Four "arms" of 1s extending up, down, left, and right from the center.
The length of each arm must be at least k-1.
Use DP.



Let the given string be “(()())((”.
Here the valid parentheses substrings are: “()”, “()” and “(()())”. Out of these the longest valid string is “(()())” which has a length 6.
Left-to-Right Scan
Count the left and right parentheses.
When they match → update the maximum length.
When right > left → reset both counters.
Right-to-Left Scan
Repeat, but this time reset when left > right.
The maximum value found is the answer.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?