自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 欢迎使用CSDN-markdown编辑器

关于c++中为什么要使用extern “C”在编写c++代码时有时候我们看到有人会使用如下的语法extern "C" { void foo();}使用该语法的目的在于使一个c++中的函数名使用c的连接方式。因为在c中是不存在函数的重载的,而在c++中存在,所以在c++中我们就不能单独使用函数名来唯一确定一个函数,还需要加上它的参数列表。所以在编译时,c++的编译器会将你的函数名破坏,加入参数

2015-11-02 16:31:15 218

原创 【leetcode】29. Divide Two Integers

Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.

2015-07-16 21:02:13 162

原创 【leetcode】28. Implement strStr()

Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02): The signature of the function had been updated

2015-07-15 21:30:37 309

原创 【leetcode】27. Remove Element

Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn’t matter what you leave beyond the new length. 删

2015-07-15 20:47:04 242

原创 【leetcode】26. Remove Duplicates from Sorted Array

remove duplicates from sorted array

2015-07-15 20:27:28 246

原创 【LeetCode】25.Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it

2015-06-11 16:48:12 246

原创 hbase设计

hbase表的设计

2015-06-11 16:42:19 394

原创 【LeetCode】24.Swap Nodes in Pairs

Given 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 only constant space.

2015-06-09 16:45:50 330

原创 【LeetCode】23.Merge k Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.

2015-06-08 16:46:59 359

原创 【LeetCode】22.Generate Parentheses

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:“((()))”, “(()())”, “(())()”, “()(())”, “()()()”

2015-06-07 15:27:44 257

原创 LeetCode索引

leetcode题目索引

2015-06-03 16:56:54 471

原创 【LeetCode】21.Merge Two Sorted Lists

LeetCode第21题

2015-06-03 16:42:50 382

空空如也

空空如也

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

TA关注的人

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