上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'where: '.' Matches any single character 阅读全文
posted @ 2020-11-28 18:03 diameter 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Follow up: Could you solve it wit 阅读全文
posted @ 2020-11-26 19:23 diameter 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non-white 阅读全文
posted @ 2020-11-25 22:40 diameter 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given a 32-bit signed integer, reverse digits of an integer. Note:Assume we are dealing with an environment that could only store integers within the 阅读全文
posted @ 2020-11-24 22:47 diameter 阅读(84) 评论(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 @ 2020-11-24 17:51 diameter 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一、如果按字节处理,可以用struct https://docs.python.org/2/library/struct.html By default, C types are represented in the machine’s native format and byte order, a 阅读全文
posted @ 2020-11-24 10:18 diameter 阅读(5019) 评论(0) 推荐(0) 编辑
摘要: Given a string s, return the longest palindromic substring in s. Input: s = "babad"Output: "bab"Note: "aba" is also a valid answer. 方法一: 暴力法,双层循环,验证所以 阅读全文
posted @ 2020-11-20 16:40 diameter 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity shou 阅读全文
posted @ 2020-11-17 22:17 diameter 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Given a string s, find the length of the longest substring without repeating characters. Input: s = "abcabcbb"Output: 3Explanation: The answer is "abc 阅读全文
posted @ 2020-11-08 11:44 diameter 阅读(77) 评论(0) 推荐(0) 编辑
摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes conta 阅读全文
posted @ 2020-11-07 18:31 diameter 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页