摘要: Now, instead outputting board configurations, return the total number of distinct solutions. 阅读全文
posted @ 2014-06-26 20:04 jdflyfly 阅读(136) 评论(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. 阅读全文
posted @ 2014-06-26 20:03 jdflyfly 阅读(178) 评论(0) 推荐(0) 编辑
摘要: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). 阅读全文
posted @ 2014-06-26 20:02 jdflyfly 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array. 阅读全文
posted @ 2014-06-26 20:01 jdflyfly 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Given a collection of numbers that might contain duplicates, return all possible unique permutations. 阅读全文
posted @ 2014-06-26 20:00 jdflyfly 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Given a collection of numbers, return all possible permutations. 阅读全文
posted @ 2014-06-26 19:59 jdflyfly 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Implement wildcard pattern matching with support for '?' and '*'. 阅读全文
posted @ 2014-06-26 19:58 jdflyfly 阅读(343) 评论(4) 推荐(0) 编辑
摘要: Given two numbers represented as strings, return multiplication of the numbers as a string. 阅读全文
posted @ 2014-06-26 19:57 jdflyfly 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. 阅读全文
posted @ 2014-06-26 19:56 jdflyfly 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted integer array, find the first missing positive integer. 阅读全文
posted @ 2014-06-26 19:55 jdflyfly 阅读(128) 评论(0) 推荐(0) 编辑