Chinaunix首页 | 论坛 | 博客
  • 博客访问: 120624
  • 博文数量: 53
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 620
  • 用 户 组: 普通用户
  • 注册时间: 2014-08-24 16:22
文章存档

2014年(53)

我的朋友

发布时间:2014-09-22 18:06:45

Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such possible sentences.For example, givens = "catsanddo.........【阅读全文】

阅读(856) | 评论(0) | 转发(0)

发布时间:2014-09-22 17:46:06

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 region.For example,X X X XX O O XX X O XX O X.........【阅读全文】

阅读(917) | 评论(0) | 转发(0)

发布时间:2014-09-20 16:31:27

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 only one unique solution.A sudoku puzzle............【阅读全文】

阅读(847) | 评论(0) | 转发(0)

发布时间:2014-09-18 15:36:24

Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s = "aab",Return [ ["aa","b"],.........【阅读全文】

阅读(778) | 评论(0) | 转发(0)

发布时间:2014-09-18 10:06:09

Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to string, note the restriction of using extra space.You could also t.........【阅读全文】

阅读(733) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册