上一页 1 2 3 4 5 6 7 8 ··· 50 下一页
摘要: 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 @ 2018-10-25 05:09 轻风舞动 阅读(958) 评论(0) 推荐(0) 编辑
摘要: In a directed graph, we start at some node and every turn, walk along a directed edge of the graph. If we reach a node that is terminal (that is, it h 阅读全文
posted @ 2018-10-25 02:23 轻风舞动 阅读(494) 评论(0) 推荐(0) 编辑
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of ston 阅读全文
posted @ 2018-10-23 09:41 轻风舞动 阅读(569) 评论(0) 推荐(0) 编辑
摘要: On a 2x3 board, there are 5 tiles represented by the integers 1 through 5, and an empty square represented by 0. A move consists of choosing 0 and a 4 阅读全文
posted @ 2018-10-23 09:27 轻风舞动 阅读(935) 评论(0) 推荐(0) 编辑
摘要: Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th 阅读全文
posted @ 2018-10-23 09:00 轻风舞动 阅读(364) 评论(0) 推荐(0) 编辑
摘要: In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. There is at least one empty seat, and at least 阅读全文
posted @ 2018-10-21 13:49 轻风舞动 阅读(838) 评论(0) 推荐(0) 编辑
摘要: Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character. Example 1: Input: S = 阅读全文
posted @ 2018-10-21 10:05 轻风舞动 阅读(781) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Example 2: Note: 给一个整数数组,找出乘积最大的3个数,返回这 阅读全文
posted @ 2018-10-20 02:32 轻风舞动 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 有 n 个硬币排成一条线。两个参赛者轮流从右边依次拿走 1 或 2 个硬币,直到没有硬币为止。拿到最后一枚硬币的人获胜。 请判定 第一个玩家 是输还是赢? n = 1, 返回 true.n = 2, 返回 true.n = 3, 返回 false.n = 4, 返回 true.n = 5, 返回 t 阅读全文
posted @ 2018-10-19 09:31 轻风舞动 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 有 n 个不同价值的硬币排成一条线。两个参赛者轮流从左边依次拿走 1 或 2 个硬币,直到没有硬币为止。计算两个人分别拿到的硬币总价值,价值高的人获胜。 请判定 第一个玩家 是输还是赢? 样例给定数组 A = [1,2,2], 返回 true.给定数组 A = [1,2,4], 返回 false. 阅读全文
posted @ 2018-10-19 09:28 轻风舞动 阅读(391) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 50 下一页