摘要: In a deck of cards, each card has an integer written on it. Return true if and only if you can choose X = 2 such that it is possible to split the enti 阅读全文
posted @ 2018-10-05 11:11 bernieloveslife 阅读(493) 评论(0) 推荐(0)
摘要: Given a non negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Input: 5 Output: True E 阅读全文
posted @ 2018-10-05 11:11 bernieloveslife 阅读(81) 评论(0) 推荐(0)
摘要: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
posted @ 2018-10-05 11:11 bernieloveslife 阅读(84) 评论(0) 推荐(0)
摘要: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: "babad" Output: 阅读全文
posted @ 2018-10-05 11:11 bernieloveslife 阅读(110) 评论(0) 推荐(0)
摘要: Given a non negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The pro 阅读全文
posted @ 2018-10-05 11:11 bernieloveslife 阅读(88) 评论(0) 推荐(0)