摘要: 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 阅读(122) 评论(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)