上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 76 下一页
摘要: Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endp 阅读全文
posted @ 2019-09-26 11:31 Schwifty 阅读(123) 评论(0) 推荐(0)
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim 阅读全文
posted @ 2019-09-25 11:24 Schwifty 阅读(161) 评论(0) 推荐(0)
摘要: Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an in 阅读全文
posted @ 2019-09-25 02:17 Schwifty 阅读(179) 评论(0) 推荐(0)
摘要: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be 阅读全文
posted @ 2019-09-23 04:03 Schwifty 阅读(149) 评论(0) 推荐(0)
摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 疯狗式解法。 注意ip地址并不能以0开头比如01.01.01.01, 阅读全文
posted @ 2019-09-20 23:43 Schwifty 阅读(203) 评论(0) 推荐(0)
摘要: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return the 阅读全文
posted @ 2019-09-20 10:10 Schwifty 阅读(121) 评论(0) 推荐(0)
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2019-09-20 02:22 Schwifty 阅读(166) 评论(0) 推荐(0)
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2019-09-20 01:32 Schwifty 阅读(118) 评论(0) 推荐(0)
摘要: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in 阅读全文
posted @ 2019-09-19 13:22 Schwifty 阅读(135) 评论(0) 推荐(0)
摘要: Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f 阅读全文
posted @ 2019-09-19 13:13 Schwifty 阅读(170) 评论(0) 推荐(0)
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 76 下一页