摘要: Given a 01 matrix M, find the longest line of consecutive one in the matrix. The line could be horizontal, vertical, diagonal or anti-diagonal. Exampl 阅读全文
posted @ 2019-08-16 12:18 北叶青藤 阅读(205) 评论(0) 推荐(0)
摘要: How this game is playe can be found at here. Python ROWS = 6 COLS = 7 def create_board(): return [[' ' for _ in range(COLS)] for _ in range(ROWS)] def 阅读全文
posted @ 2019-08-16 11:36 北叶青藤 阅读(682) 评论(0) 推荐(0)