摘要:
Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be... 阅读全文
posted @ 2014-04-24 08:17
beehard
阅读(123)
评论(0)
推荐(0)
摘要:
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For exampl... 阅读全文
posted @ 2014-04-24 06:49
beehard
阅读(120)
评论(0)
推荐(0)
摘要:
Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded... 阅读全文
posted @ 2014-04-24 06:17
beehard
阅读(114)
评论(0)
推荐(0)
摘要:
Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including ... 阅读全文
posted @ 2014-04-24 04:32
beehard
阅读(143)
评论(0)
推荐(0)
摘要:
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representati... 阅读全文
posted @ 2014-04-24 04:14
beehard
阅读(140)
评论(0)
推荐(0)
摘要:
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. Solution: 1. dp. (72 milli secs ... 阅读全文
posted @ 2014-04-24 03:50
beehard
阅读(176)
评论(0)
推荐(0)
摘要:
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given "25525511135", return ["... 阅读全文
posted @ 2014-04-24 03:29
beehard
阅读(142)
评论(0)
推荐(0)
摘要:
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You sho... 阅读全文
posted @ 2014-04-24 03:02
beehard
阅读(150)
评论(0)
推荐(0)
摘要:
Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c" Corner Cases: ... 阅读全文
posted @ 2014-04-24 02:45
beehard
阅读(149)
评论(0)
推荐(0)
摘要:
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac... 阅读全文
posted @ 2014-04-24 02:38
beehard
阅读(162)
评论(0)
推荐(0)

浙公网安备 33010602011771号