上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 98 下一页
摘要: There is a special square room with mirrors on each of the four walls. Except for the southwest corner, there are receptors on each of the remaining c 阅读全文
posted @ 2019-05-18 22:33 Veritas_des_Liberty 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer N, how many ways can we write it as a sum of consecutive positive integers? Example 1: Example 2: Example 3: Note: 1 <= N <= 阅读全文
posted @ 2019-05-18 22:00 Veritas_des_Liberty 阅读(210) 评论(0) 推荐(0) 编辑
摘要: A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates 阅读全文
posted @ 2019-05-18 21:41 Veritas_des_Liberty 阅读(209) 评论(0) 推荐(0) 编辑
摘要: You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points. Notes: 3 <= points.length < 阅读全文
posted @ 2019-05-17 21:59 Veritas_des_Liberty 阅读(281) 评论(0) 推荐(0) 编辑
摘要: In a given integer array A, we must move every element of A to either list B or list C. (B and C initially start empty.) Return true if and only if af 阅读全文
posted @ 2019-05-17 20:56 Veritas_des_Liberty 阅读(178) 评论(0) 推荐(0) 编辑
摘要: A Tic-Tac-Toe board is given as a string array board. Return True if and only if it is possible to reach this board position during the course of a va 阅读全文
posted @ 2019-05-17 17:37 Veritas_des_Liberty 阅读(306) 评论(0) 推荐(0) 编辑
摘要: You are playing a simplified Pacman game. You start at the point (0, 0), and your destination is (target[0], target[1]). There are several ghosts on t 阅读全文
posted @ 2019-05-17 17:00 Veritas_des_Liberty 阅读(262) 评论(0) 推荐(0) 编辑
摘要: There is a box protected by a password. The password is n digits, where each letter can be one of the first k digits 0, 1, ..., k-1. You can keep inpu 阅读全文
posted @ 2019-05-16 22:34 Veritas_des_Liberty 阅读(285) 评论(0) 推荐(0) 编辑
摘要: A move consists of taking a point (x, y) and transforming it to either (x, x+y) or (x+y, y). Given a starting point (sx, sy) and a target point (tx, t 阅读全文
posted @ 2019-05-15 22:30 Veritas_des_Liberty 阅读(276) 评论(0) 推荐(0) 编辑
摘要: You are standing at position 0 on an infinite number line. There is a goal at position target. On each move, you can either go left or right. During t 阅读全文
posted @ 2019-05-15 22:08 Veritas_des_Liberty 阅读(260) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 98 下一页