摘要: Now, instead outputting board configurations, return the total number of distinct solutions. 阅读全文
posted @ 2014-06-26 20:04 jdflyfly 阅读(139) 评论(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 阅读(180) 评论(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 阅读(221) 评论(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 阅读(204) 评论(0) 推荐(0)
摘要: Given a collection of numbers that might contain duplicates, return all possible unique permutations. 阅读全文
posted @ 2014-06-26 20:00 jdflyfly 阅读(227) 评论(0) 推荐(0)
摘要: Given a collection of numbers, return all possible permutations. 阅读全文
posted @ 2014-06-26 19:59 jdflyfly 阅读(170) 评论(0) 推荐(0)
摘要: Implement wildcard pattern matching with support for '?' and '*'. 阅读全文
posted @ 2014-06-26 19:58 jdflyfly 阅读(346) 评论(4) 推荐(0)
摘要: Given two numbers represented as strings, return multiplication of the numbers as a string. 阅读全文
posted @ 2014-06-26 19:57 jdflyfly 阅读(210) 评论(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 阅读(221) 评论(0) 推荐(0)
摘要: Given an unsorted integer array, find the first missing positive integer. 阅读全文
posted @ 2014-06-26 19:55 jdflyfly 阅读(131) 评论(0) 推荐(0)