随笔分类 -  中等

摘要:Description: Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the fi 阅读全文
posted @ 2018-08-16 17:05 双肩包码农 阅读(191) 评论(0) 推荐(0)
摘要:Description: 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 阅读全文
posted @ 2018-08-16 14:45 双肩包码农 阅读(87) 评论(0) 推荐(0)
摘要:Description: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 阅读全文
posted @ 2018-08-14 18:13 双肩包码农 阅读(86) 评论(0) 推荐(0)
摘要:Description: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", w 阅读全文
posted @ 2018-08-13 18:28 双肩包码农 阅读(115) 评论(0) 推荐(0)
摘要:Description: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their 阅读全文
posted @ 2018-08-13 18:00 双肩包码农 阅读(132) 评论(0) 推荐(0)