自定义博客皮肤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)
  • 收藏
  • 关注

原创 Golang 简介及配置

Go 是 2009 年发布的一种简单的并行开发,且跨平台的类 C 语言。由于其强大的并行性,很适合用于网络开发中。来自其网站的介绍:Go 编程语言是一个使得程序员更加有效率的开源项目。 Go 是有表达力、简洁、清晰和有效率的。它的并行机制使其很容易编写多核和网络应用,而新奇的类型系统允许构建有弹性的模块化程序。 Go 编译到机器码非常快速,同时具有便利的垃圾回收和强大的运行时反射。它是快速的、静态类

2015-07-31 22:35:54 586

原创 LeetCode 之 Delete Node in a Linked List — C++ 实现

Delete Node in a Linked List Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and yo

2015-07-27 17:30:23 358

原创 浅谈 malloc/free 和 new/delete

malloc 和 free 是 C 语言中的函数,也可以用在 C++ 中,但在 C++ 中却视为不安全的内存操作。而 new 和 delete 是 C++ 中的两个运算符,完全可以替代 malloc/free 完成内存的操作,且为安全的内存操作。它们的区别有以下几点:malloc / free 为 C/C++ 标准库函数,而 new/delete 为 C++中的运算符。new 创建的对象有类型,

2015-07-25 21:50:17 294

原创 C/C++兼容性

C/C++兼容性C 语言为面向过程的编程语言,C++ 是面向对象的编程语言,有些人也称 C++ 为“带类的 C”。

2015-07-25 18:31:54 1595

原创 LeetCode 之 Implement Queue using Stacks — C++ 实现

Implement Queue using Stacks Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue

2015-07-11 18:08:52 777

原创 LeetCode 之 Kth Largest Element in an Array — C++ 实现

Kth Largest Element in an Array Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For example,

2015-07-11 17:37:55 445

原创 LeetCode 之 Palindrome Linked List — C++ 实现

Palindrome Linked List Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?给定一个单链表,判断是不是回文。追问:可否实现时间复杂度为 O(n),空间复杂度为 O

2015-07-10 21:34:17 648

原创 LeetCode 之 Populating Next Right Pointers in Each Node I II — C++ 实现

Populating Next Right Pointers in Each Node Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate

2015-07-04 20:37:44 348

空空如也

空空如也

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

TA关注的人

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