codingHeart

返回顶部

随笔分类 -  算法之Leetcode

算法练习
3. Longest Substring Without Repeating Characters - 最长无重复字符子串-Medium
摘要:Examples: Description: Given a string, find the length of the longest substring without repeating characters. Example: 思路分析: 1.第一想法:从第一个字符起,逐个计算出最长字串长 阅读全文

posted @ 2017-03-13 23:57 codingHeart 阅读(319) 评论(0) 推荐(1)

27. Remove Element - 移除元素-Easy
摘要:Description: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for anothe 阅读全文

posted @ 2017-03-12 23:44 codingHeart 阅读(544) 评论(0) 推荐(0)

20. Valid Parentheses - 括号匹配验证
摘要:Description: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. Example: 思路分析: 1.这 阅读全文

posted @ 2017-03-12 00:23 codingHeart 阅读(1566) 评论(0) 推荐(1)

2. Add Two Numbers
摘要: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 @ 2017-03-10 14:49 codingHeart 阅读(211) 评论(0) 推荐(0)

1. Two Sum
摘要: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 阅读全文

posted @ 2017-03-10 11:01 codingHeart 阅读(248) 评论(0) 推荐(0)

导航