上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: We partition a row of numbers A into at most K adjacent (non-empty) groups, then our score is the sum of the average of each group. What is the larges 阅读全文
posted @ 2019-01-24 13:04 yuxihong 阅读(156) 评论(0) 推荐(0) 编辑
摘要: On a 2-dimensional grid, there are 4 types of squares: 1 represents the starting square. There is exactly one starting square. 2 represents the ending 阅读全文
posted @ 2019-01-22 23:45 yuxihong 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree with N nodes, each node has a different value from {1, ..., N}. A node in this binary tree can be flipped by swapping the left chi 阅读全文
posted @ 2019-01-22 02:16 yuxihong 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of integers, you can perform operations on the array. In each operation, you pick any nums[i] and delete it to earn nums[i] points 阅读全文
posted @ 2019-01-22 01:35 yuxihong 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree with N nodes, each node in the tree has node.val coins, and there are N coins total. In one move, we may choose two ad 阅读全文
posted @ 2019-01-21 20:37 yuxihong 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Given a list of words, we may encode it by writing a reference string S and a list of indexes A. For example, if the list of words is ["time", "me", " 阅读全文
posted @ 2019-01-19 17:48 yuxihong 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. 阅读全文
posted @ 2019-01-18 19:41 yuxihong 阅读(124) 评论(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 @ 2019-01-18 03:32 yuxihong 阅读(120) 评论(0) 推荐(0) 编辑
摘要: In a given 2D binary array A, there are two islands. (An island is a 4-directionally connected group of 1s not connected to any other 1s.) Now, we may 阅读全文
posted @ 2019-01-18 01:55 yuxihong 阅读(180) 评论(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-01-17 11:29 yuxihong 阅读(167) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 14 下一页