摘要:
1. 题目Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive in... 阅读全文
摘要:
Surrounded RegionsGiven 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... 阅读全文
摘要:
Word LadderGiven two words (beginWordandendWord), and a dictionary, find the length of shortest transformation sequence frombeginWordtoendWord, such t... 阅读全文
摘要:
Palindrome Partitioning IIGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for ... 阅读全文