摘要:
Now, instead outputting board configurations, return the total number of distinct solutions. 阅读全文
摘要:
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. 阅读全文
摘要:
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). 阅读全文
摘要:
Given an array of non-negative integers, you are initially positioned at the first index of the array. 阅读全文
摘要:
Given a collection of numbers that might contain duplicates, return all possible unique permutations. 阅读全文
摘要:
Given a collection of numbers, return all possible permutations. 阅读全文
摘要:
Implement wildcard pattern matching with support for '?' and '*'. 阅读全文
摘要:
Given two numbers represented as strings, return multiplication of the numbers as a string. 阅读全文
摘要:
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. 阅读全文
摘要:
Given an unsorted integer array, find the first missing positive integer. 阅读全文