自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 子类继承父类的虚函数调用

子类继承父类中,虚函数再构造函数中和不再构造函数中的调用

2016-04-17 15:00:11 20865 2

原创 Java中基本类型

Java中的基本类型,基本类型转换

2016-04-16 13:55:21 383

原创 栈的压入、弹出序列

给定两个序列,第一个为栈的压入序列,判断第二个是否为栈的输出序列

2016-04-15 20:16:55 629

原创 定义含有min函数的栈

重新定义栈,使其满足可以找到最小值得min函数

2016-04-15 19:03:12 290

原创 顺时针打印矩阵

顺时针将矩阵打印出来

2016-04-15 18:00:51 269

原创 二叉树的镜像

二叉树的镜像

2016-04-15 16:24:58 281

原创 Java中final、static

java中的final,static,实例变量,类变量,局部变量

2016-04-15 13:01:44 326

原创 Java中值传递和引用传递实例

Java中值传递和引用传递实例

2016-04-15 12:05:10 2934 1

原创 调整数组顺序,使奇数位于偶数前面

对一个数组进行排序,奇数放到偶数前面,且顺序不变。

2016-04-14 15:34:00 262

原创 常规求幂、二分求幂、快速位求幂

常规求幂、二分求幂、快速求幂

2016-04-13 20:40:31 2421

原创 C++中子类父类构造函数和析构函数

C++中子类、父类的构造函数和析构函数。

2016-04-13 14:32:23 1180

原创 i=i++在Java和C++中的输出

i=i++在Java和C++中的输出

2016-04-12 20:59:29 704 1

原创 斐波那契数列第n个数

输出斐波那契数列第n项

2016-04-12 15:48:26 2098

原创 使用两个栈实现队列

使用两个栈实现一个队列

2016-04-12 14:57:13 272

原创 根据前序遍历和中序遍历重建二叉树

给定前序遍历和中序遍历重建二叉树

2016-04-12 12:56:17 316

原创 C++32各个基本类型字节数

C++中32系统,基本类型所占字节数

2016-04-11 11:11:27 754

原创 反转链表

链表反转

2016-04-10 22:09:53 257

原创 从头到位打印链表

从后往前打印链表中的数字,可以采用两种方法,一种是使用堆栈,一种是使用栈

2016-04-10 21:51:40 259

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

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2016-04-10 21:48:52 229

原创 1 Two Sum

题目:Given 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 the ta

2015-09-13 21:19:14 279

原创 Merge Two Sorted Lists

题目:      Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.题意:     合并两个已经有顺序的链表为一个链表,新的链表也要按照顺序排列。解

2015-07-18 14:24:10 400

原创 Valid Parentheses

题目:       Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]

2015-07-18 11:24:17 244

原创 Remove Nth Node From End of List

题目:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the

2015-07-18 10:52:10 266

原创 Reverse Integer

题目:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good questions to ask before coding. Bonus points fo

2015-07-16 20:20:10 190

原创 ZigZag Conversion

题目:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S

2015-07-16 19:38:23 279

原创 渣渣编程的坚持

因为上大学的不认真学习,导致编程能力比较弱。每次看到别人快速的完成测试题目,自己还没有思路,十分苦闷。我以后也要坚持,争取成功。

2015-07-16 18:57:38 219

switch-求年、月、天数

运用switch-case,当输入年份和月份时,能够计算出当月的天数,并输出。

2014-03-30

冒泡法-例子

先建立一个数组,对其中的数运用冒泡法进行排序。

2014-03-30

空空如也

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

TA关注的人

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