摘要:
Description: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cove 阅读全文
摘要:
Description: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2 阅读全文
摘要:
Description: Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the fi 阅读全文
摘要:
Description: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environm 阅读全文
摘要:
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 阅读全文
摘要:
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: 阅读全文
摘要:
Description: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time 阅读全文
摘要:
Description: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", w 阅读全文
摘要:
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 阅读全文
摘要:
Description: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input 阅读全文