Search found 5 matches

by suifeng2006
Wed Apr 27, 2022 1:21 am
Forum: SDE System Design
Topic: Coding Skills - Flip with adjacent squares - Google
Replies: 0
Views: 2414

Coding Skills - Flip with adjacent squares - Google

Given a matrix with red and blue squares in it, you can only flip the top left square but there is a chain reaction, which is all the adjacent(up,down, left,right) squares of the same color are flipped accordingly. Example 1: Input: [0, 0, 1, 0] flip [1, 1, 1, 0] flip [0, 0, 0, 0] flip [1, 1, 1, 1] ...
by suifeng2006
Sat Apr 23, 2022 7:08 pm
Forum: SDE System Design
Topic: Design Ticket Master
Replies: 0
Views: 1628

Design Ticket Master