自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (2)
  • 收藏
  • 关注

原创 [LeetCode] Linked List Cycle

Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? /** * Definition for singly-linked list. * struct ListNode { * int val; *

2014-03-18 00:19:28 341

原创 [LeetCode] Unique Binary Search Trees

Given 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. class Solution { public: int numTrees

2014-03-18 00:02:07 377

原创 [LeetCode] Best Time to Buy and Sell Stock II

Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy on

2014-03-16 12:25:41 413

原创 [LeetCode] Reverse Integer

Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 class Solution { public: int reverse(int x) { int s=0; int a=0; if(x<0)

2014-03-16 12:09:11 347

原创 [LeetCode] Same Tree

Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. /** * Def

2014-03-16 12:00:54 367

原创 [LeetCode] 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. /** * Definition for binary tree

2014-03-16 11:43:12 344

原创 把LeetCode刷一遍

我很菜,慢慢来,每天刷2、3题,从AC Rates 最高的往下做。

2014-03-16 11:39:14 1028

原创 [LeetCode] Single Number

Given an array of integers, every element appears twice except for one. Find that single one. class Solution { public: int singleNumber(int A[], int n) { int s=0; int i;

2014-03-16 11:33:49 366

五子棋展示版

五子棋,很漂亮的程序,学习java的可以看看那

2012-04-21

[MATLAB揭秘].David.McMahon

[MATLAB揭秘].David.McMahon,你学习MATLAB 是想进行科学计算,那我建议你阅读我翻译的《MATLAB揭秘》一书(本书) ,本书介绍了 统计、绘图、求微积分、解微分方程、解ODE、变换、曲线拟合、特殊函数……很多的高 数方面的应用,还附有习题和答案。

2012-04-21

空空如也

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

TA关注的人

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