自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

不吐不快

resist temptation, endure loneliness

  • 博客(42)
  • 资源 (4)
  • 收藏
  • 关注

转载 python命令行自动补全

为python命令行配置自动补全

2016-04-11 20:17:50 1223

转载 阅读《C陷阱与缺陷》的知识增量

这本书是在ASCI C/C89订制之前写的,有些地方有疏漏。第一章 词法陷阱1.3 C语言中解析符号时使用贪心策略,如x+++++y将被解析为x++ ++ +y,并编译出错。1.5 单引号引起的一个字符代表一个对应的整数,对于采用ASCII字符集的编译器而言,'a'与0141、97含义一致。练习1.1 嵌套注释(如/*/**/*/)只在某些C编译器中允许,如gcc4

2015-07-23 22:09:41 306

原创 LeetCode之旅(39)

Best Time to Buy and Sell Stock IISay you have an array for which the ith element is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete as

2014-09-04 19:55:15 390

原创 LeetCode之旅(38)

Container With Most WaterGiven n non-negative integers a1,a2, ..., an, where each represents a point at coordinate (i,ai). n vertical lines are drawn such that the two endpoints of linei

2014-09-04 18:58:37 355

原创 LeetCode之旅(37)

Best Time to Buy and Sell StockSay you have an array for which the ith element is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie, buy

2014-09-02 21:52:08 318

原创 LeetCode之旅(36)

Pascal's TriangleGiven numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]]

2014-09-02 20:52:25 343

原创 LeetCode之旅(35)

Gray CodeThe gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total number of bits in the code, print t

2014-09-02 20:33:42 398

原创 LeetCode之旅(34)

3SumGiven an array S of n integers, are there elementsa, b, c in S such that a + b +c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in a trip

2014-09-01 16:59:29 355

原创 LeetCode之旅(33)

Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?

2014-08-31 19:20:26 329

原创 LeetCode之旅(32)

Binary Tree Postorder TraversalGiven a binary tree, return the postorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [3

2014-08-31 17:35:39 296

原创 LeetCode之旅(31)

A 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 reach the

2014-08-31 16:20:22 504

原创 LeetCode之旅(30)

Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to th

2014-08-31 15:24:11 323

原创 LeetCode之旅(29)

Plus One

2014-08-31 13:12:19 337

原创 LeetCode之旅(28)

Sort ColorsGiven an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will

2014-08-30 23:40:43 366

原创 LeetCode之旅(27)

Merge Sorted Array

2014-08-30 23:25:34 316

原创 LeetCode之旅(26)

Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4

2014-08-29 21:08:01 317

原创 LeetCode之旅(25)

Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear onlyonce and return the new length.Do not allocate extra space for ano

2014-08-29 19:33:19 398

原创 LeetCode之旅(24)

Swap Nodes in PairsGiven a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use

2014-08-29 18:56:14 352

原创 LeetCode之旅(23)

Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.

2014-08-29 17:41:29 417

原创 LeetCode之旅(22)

Balanced Binary Tree

2014-08-29 16:06:44 289

原创 LeetCode之旅(21)

Remove Element

2014-08-28 19:00:31 281

原创 LeetCode之旅(20)

Merge Two Sorted Lists

2014-08-28 18:34:10 522

原创 LeetCode之旅(19)

Maximum Subarray

2014-08-28 18:21:16 291

原创 LeetCode之旅(18)

Integer to RomanGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.

2014-08-28 14:49:19 302

原创 LeetCode之旅(17)

Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.很无聊的一道题,不过

2014-08-28 14:35:48 286

原创 LeetCode之旅(16)

Climbing StairsYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?经典的跳台

2014-08-28 14:21:41 1100

原创 LeetCode之旅(15)

Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, r

2014-08-28 14:15:02 281

原创 LeetCode之旅(14)

Search Insert Position

2014-08-28 14:01:55 304

原创 LeetCode之旅(13)

Populating Next Right Pointers in Each NodeGiven a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each n

2014-08-27 15:56:25 276

原创 LeetCode之旅(12)

Binary Tree Inorder Traversal

2014-08-27 14:20:05 299

原创 LeetCode之旅(11)

Binary Tree Preorder Traversal

2014-08-27 13:34:23 395

原创 LeetCode之旅(10)

Linked List Cycle

2014-08-26 22:53:38 280

原创 LeetCode之旅(9)

Unique Binary Search TreesGiven n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's.

2014-08-26 21:50:10 319

原创 LeetCode之旅(8)

Reverse IntegerReverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321

2014-08-26 00:20:10 347

原创 LeetCode之旅(7)

Same Tree

2014-08-25 23:58:45 313

原创 LeetCode之旅(6)

Maximum Depth of Binary Tree

2014-08-25 23:47:40 372

原创 LeetCode之旅(5)

Single Number

2014-08-25 23:19:55 328

原创 LeetCode之旅(4)

Sort ListSort a linked list in O(n log n) time using constant space complexity.

2014-08-25 22:17:42 448

原创 LeetCode之旅(3)

Max Points on a LineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.

2014-08-24 11:57:49 431

原创 LeetCode之旅(2)

Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expressi

2014-08-24 10:46:51 357

华中科技大学组成原理课设报告

华中科技大学组成原理课设报告,仅供参考。

2014-01-14

最优二叉搜索树的动态规划算法研究

关于最优二叉搜索树的动态规划算法描述

2014-01-14

windows下配置emacs

较为详细的介绍了windows下emacs的配置方法,亲测可用,资料来自网络。

2013-08-11

全国大学生信息安全大赛获奖作品集

全国大学生信息安全大赛获奖作品集,包括获奖作品以及论文

2013-02-20

空空如也

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

TA关注的人

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