摘要:
题目: Implement atoi to convert a string to an integer. 题目大意: 将一个数字字符串转化为整数数字,返回整数数字。 思路: 初看本题觉得很简单,直接用一个循环进行转换就行了,循环里边的语句也很简单,就是result = resul... 阅读全文
摘要:
题目: 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 ... 阅读全文
摘要:
题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one un... 阅读全文
摘要:
题目: 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 co... 阅读全文
摘要:
题目: Given an unsorted array of integers, find the length of longest increasing subsequence. For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The l... 阅读全文
摘要:
题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating le... 阅读全文
摘要:
题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a... 阅读全文