
leetcode
文章平均质量分 68
truffle528
这个作者很懒,什么都没留下…
展开
-
leetcode: 832 - Flipping an Image
前言 我本科的数据结构与算法学得并不好,现在的记忆也比较模糊了,而对于算法工程师而言,编程思想和能力却是必不可少的,所以我决定从今天开始刷leetcode,计划是先从array、string、tree、linkedlist、math五个tag开始,按照easy到medium到hard的顺序(hard暂时先放过,这次以过知识点为主),以过年为期限系统实践一遍数据结构与算法。 ...原创 2018-12-07 16:51:38 · 221 阅读 · 0 评论 -
leetcode:1 - 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 have exactly one solution, and you may not use th...原创 2018-12-09 18:10:21 · 236 阅读 · 0 评论 -
leetcode:167. Two Sum II - Input array is sorted
目录题目描述实现1.哈希表2.二分查找法3.双指针法题目描述Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function twoS...原创 2018-12-10 11:32:57 · 293 阅读 · 0 评论 -
leetcode:206 - Reverse Linked List
目录 题目描述实现1.迭代法2.递归法题目描述Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be r...原创 2018-12-10 17:55:00 · 292 阅读 · 0 评论