Shirlies
宁静专注认真的程序媛~
posts - 222,comments - 49,views - 71万

随笔分类 -  leetcode

leetcode里的ac题解
leetcode-【hard】4. Median of Two Sorted Arrays
摘要:题目 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 complexity 阅读全文
posted @ 2016-08-10 15:15 Shirlies 阅读(295) 评论(0) 推荐(0) 编辑
leetcode-【中等题】5. Longest Palindromic Substring
摘要:题目 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 unique lon 阅读全文
posted @ 2016-08-08 15:03 Shirlies 阅读(301) 评论(0) 推荐(0) 编辑
leetcode-【中等题】3. Longest Substring Without Repeating Characters
摘要:题目: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the 阅读全文
posted @ 2016-08-04 14:47 Shirlies 阅读(356) 评论(0) 推荐(0) 编辑
leetcode-【中等题】2. Add Two Numbers
摘要:题目 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 sing 阅读全文
posted @ 2016-07-20 20:36 Shirlies 阅读(245) 评论(0) 推荐(0) 编辑
leetcode-【中等题】228. Summary Ranges
摘要:题目: 228. Summary Ranges 228. Summary Ranges Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1 阅读全文
posted @ 2016-07-16 15:20 Shirlies 阅读(337) 评论(0) 推荐(0) 编辑
leetcode-【hard】273. Integer to English Words
摘要:题目: 273. Integer to English Words Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 阅读全文
posted @ 2016-07-16 13:17 Shirlies 阅读(380) 评论(0) 推荐(1) 编辑
leetcode-【简单题】Happy Number
摘要:题目: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive in 阅读全文
posted @ 2016-07-11 09:00 Shirlies 阅读(588) 评论(0) 推荐(0) 编辑
leetcode-【中等题】Divide Two Integers
摘要:题目 Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT 链接 https://leetcode.com/problems/div 阅读全文
posted @ 2016-07-09 13:54 Shirlies 阅读(427) 评论(1) 推荐(1) 编辑
leetcode-【简单题】Two Sum
摘要:题目: 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 would hav 阅读全文
posted @ 2016-02-24 09:22 Shirlies 阅读(307) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示