CN Insider💡- Be the First to Know – Join our Brand new Discord Community of CNCode 360 for Insider tips, Early Announcements, and Structured Upskilling.
Embark on a weekly coding adventure with problems inspired by top tech companies !! Each week brings a new opportunity for you to showcase your coding skills and a chance to land tech internships or full-time positions with our esteemed hiring partners.
Weekly Contest is not just about coding; it's a chance to upskill, get hired, and step into the world of enormous career opportunities.
Contest Process(Important):
Registration: Register on CNCode 360 Weekly Contest to participate in the contest
Participation: Engage in the coding challenge every Thursday from 8 to 10 PM.
Contest Format:
Duration: 2 hours of coding excitement.
Problems: 4 High Quality Industry Based Coding Problems.
Language Supported: Java,Python, C++,&JavaScript
Weekly Contest Rewards 🏆
Earn Coding Ninjas Studio EXP as well to unlock lucrative badges on your CNStudio Profile
Hey Ninjas!
This is a post to ask doubts and share your logic for solving questions from Weekly Contest 142! 😄
You can also view the rankings for the contest here (link).
If you face any issues during the contest, do let us know by replying below. ✌️
How was your experience in the contest or got any feedback? Let us know here (link)
The judges solution to 4 is incorrect. It is mentioned in the statement that you can only move to the right or downwards, however the testdata also counts a grid as valid if any path exists(you can move in any direction with a 0). Anyway solution courtesy of the contest winner There are basically four kinds of rows: Blank, rows with 1s from [0, N//2-1], rows with 1s from [N//2, N-1], and other rows. Call these Blank, A, B, Other. A grid is not valid if
1) There is an A row and then a B row downwards.
2) There is a B row and then an A row downwards. All rows in between are not blank.
3) There is an A row with no blanks above.
4)There is a B row with no blanks below.
Therefore, the states where care about are: have we had a blank row at all? Has there been an A since the last blank row? Has there been a B since the last blank row?
No video solution for this contest ?
Where do I get solutions for the contest problems ??
can anyone telll me solution of 3rd
How to 4th? DP?