摘要: Design a Tic-tac-toe game that is played between two players on a nx n grid. You may assume the following rules: A move is guaranteed to be valid and 阅读全文
posted @ 2020-02-01 12:21 xuan_abc 阅读(153) 评论(0) 推荐(0)
摘要: Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longestpath betwee 阅读全文
posted @ 2020-02-01 07:30 xuan_abc 阅读(85) 评论(0) 推荐(0)