[Community Puzzle] Diagonal-achoo! - Puzzle discussion

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @AnshuJack,validated by @tcooke,@pbou and @TBali.
If you have any issues, feel free to ping them.

Graphs and BFS? More likely just Arrays.

I agree. The fact that it says bfs is misleading at best

Different people may approach the problem in different ways, and it’s definitely possible to implement a valid solution using BFS. I don’t think the tag BFS is misleading.

Continuing the discussion from [Community Puzzle] Diagonal-achoo! - Puzzle discussion:

hello i wolul like ask for one thing → Weird Patterns - II in local work fine but if will send dosen’t. please will send mi date for this example. thanks :slight_smile:

I would guess that the rule If a tie occurs, choose the grid with the lower index. could apply.

Custom Case

Consider something like:

4
2
....
.CC.
.CC.
....
CCCC
CCCC
CCCC
CCCC

Expected output:

0
CCCC
CCCC
CCCC
CCCC

If that doesn’t help, you can send me your code via private message and I’ll take a look for you :slightly_smiling_face: