自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Ekinnn

芝士就是力量~✌️

  • 博客(60)
  • 收藏
  • 关注

原创 leetcode142

1、Linked List Cycle II Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Note: Do not modify the linked list.Follow up: Can you solve it without using ext

2017-03-09 09:34:19 518

原创 leetcode515

1、Find Largest Value in Each Tree Row You need to find the largest value in each row of a binary tree.Example:

2017-03-08 11:05:52 441

原创 leetcode111

Minimum Depth of Binary Tree Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.

2017-03-08 10:25:01 434

原创 leetcode104

1、 Maximum Depth of Binary Tree Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.

2017-03-08 10:09:44 398

原创 leetcode513

Find Bottom Left Tree Value Given a binary tree, find the leftmost value in the last row of the tree.Example 1:

2017-03-08 09:50:01 497

原创 二叉树的深度优先和广度优先遍历

深度优先等效于先序遍历,根左右的顺序,常常采用递归或者堆栈(后进先出)实现,所以我们先把右子树放入栈中,后放左子树,这样所有的左子树访问完了

2017-03-06 14:43:35 517

原创 leetcode62

Unique PathsA robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to rea

2017-03-03 10:14:57 395

原创 leetcode485

1、Max Consecutive Ones Given a binary array, find the maximum number of consecutive 1s in this array.Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three di

2017-03-03 10:03:22 319

原创 Leetcode216&39

1、Combination Sum III

2017-03-03 09:56:24 337

原创 层级遍历二叉树

第一种方法就是用队列实现class Solution {

2017-03-01 09:54:22 387

原创 leetcode445

1、 Add Two Numbers II

2017-02-28 10:04:34 382

原创 leetcode109

1 Convert Sorted List to Binary Search Tree

2017-02-27 20:21:43 776

原创 leetcode328

1、 Odd Even Linked List

2017-02-27 19:25:25 397

原创 栈、队列&leetcode225&155&232

c++中栈的简单应用

2017-01-15 21:41:00 461

原创 leetcode141&234

1、 Linked List Cycle

2017-01-13 19:51:43 326

原创 leetcode21

1、Merge Two Sorted Lists

2017-01-13 18:40:50 539

原创 leetcode118

Pascal’s Triangle

2017-01-11 12:33:50 352

原创 leetcode442

1、Find All Duplicates in an Array

2017-01-10 17:10:12 482

原创 leetcode448

1、Find All Numbers Disappeared in an Array

2017-01-10 17:06:19 309

原创 C++11中与Boost库相关的部分新特性总结

改进单例模式使用c改进程序性能Move右值引用FunctionalForward新的标准库stdforwardunordered_mapunordered_set顺序容器库让程序更简洁更现代Typeofauto decltype推断变量或表达式的数据类型ResultOf新的标准库stdresult_ofValueinitializedList-initializationBOOST

2017-01-10 16:54:15 1018

原创 leetcode290

1、Word Pattern

2017-01-09 17:50:25 453

原创 leetcode409

1、Longest Palindrome

2017-01-09 16:38:41 300

原创 leetcode461

1、Hamming Distance

2017-01-09 16:07:52 300

原创 leetcode258

1、Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has onl

2017-01-05 10:48:56 255

原创 leetcode217

1、Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return fals

2017-01-04 22:15:30 235

原创 leetcode347

1、Top K Frequent Elements

2017-01-04 21:41:25 295

原创 leetcode242

1、Valid Anagram

2017-01-04 10:51:33 420

原创 leetcode389

1、Find the Difference Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then add one more letter at a random position.Find the le

2017-01-03 21:17:20 261

原创 leetcode136

1、Single Number Given an array of integers, every element appears twice except for one. Find that single one.

2017-01-03 21:07:19 312

原创 leetcode392

1、 Is Subsequence

2017-01-03 18:00:38 334

原创 leetcode349&350

1、Intersection of Two Arrays

2017-01-03 17:47:17 292

原创 leetcode167

1、Two Sum II - Input array is sorted 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 twoSum should

2017-01-03 17:11:27 262

原创 由字符串匹配到KMP算法

字符串匹配问题就是在指对于两段字符串,待匹配串和模式串,寻找待匹配串中模式串是否出现,及出现的位置。

2017-01-03 14:22:18 364

原创 二分查找Binary Search

在一个有序的集合中查找元素,可以使用二分查找算法,也叫二分搜索。

2017-01-03 11:12:49 248

转载 排序算法总结

概述排序有内部排序和外部排序,内部排序是数据记录在内存中进行排序,而外部排序是因排序的数据很大,一次不能容纳全部的排序记录,在排序过程中需要访问外存。

2017-01-02 21:42:50 347

原创 leetcode14

1、Longest Common Prefix

2016-12-28 20:01:26 378

原创 leetcode345

1、Reverse Vowels of a String

2016-12-28 10:25:23 330

原创 leetcode434&58

1、Number of Segments in a String

2016-12-28 10:12:42 449

原创 leetcode459

1、 Repeated Substring Pattern

2016-12-27 11:25:21 362

原创 leetcode107&102&103

1、Binary Tree Level Order Traversal

2016-12-20 11:43:02 400

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除