摘要: Sudoku SolverWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that the... 阅读全文
posted @ 2015-08-19 20:01 Sean_le 阅读(126) 评论(0) 推荐(0)
摘要: Group AnagramsGiven two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t... 阅读全文
posted @ 2015-08-19 18:46 Sean_le 阅读(178) 评论(0) 推荐(0)
摘要: Isomorphic StringsGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All... 阅读全文
posted @ 2015-08-19 14:46 Sean_le 阅读(116) 评论(0) 推荐(0)
摘要: Contains Duplicate IIGiven an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such thatnums[i] = n... 阅读全文
posted @ 2015-08-19 14:10 Sean_le 阅读(125) 评论(0) 推荐(0)
摘要: Valid SudokuDetermine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are ... 阅读全文
posted @ 2015-08-19 13:54 Sean_le 阅读(151) 评论(0) 推荐(0)
摘要: Valid AnagramGiven two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t=... 阅读全文
posted @ 2015-08-19 13:23 Sean_le 阅读(128) 评论(0) 推荐(0)
摘要: Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at leas... 阅读全文
posted @ 2015-08-19 13:00 Sean_le 阅读(124) 评论(0) 推荐(0)