自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

rongwenxiao的专栏

有时间有故事就写好点,没时间有故事就写快点,有时间没故事就随便写一点,没时间没故事就简单写一点。

  • 博客(54)
  • 资源 (1)
  • 问答 (1)
  • 收藏
  • 关注

转载 关于静态变量、全局变量的一些转载集合

(C/C++中的静态变量、全局变量在存储、初始化、赋值等问题上,有不少异于常识的处理行为;而甚至C与C++之间也会有一些区别。这给笔者带来不少困惑,经过阅读博客和结合实验,搞清楚了不少问题。下面是有关的转载。)一、下面这篇转自 http://www.cnblogs.com/catch/p/4314256.html 是有关初始化的。c++ 全局变量初始化的一点总结注意

2016-09-22 18:42:51 1005

原创 《剑指offer》简略总结

剑指offer:题目(页码以书为准而不是pdf):(P24)实现定义类的赋值运算符函数。要点是返回值类型声明为引用,返回实例自身;传入参数声明为const常量引用;分配新内存,释放旧内存;判断传入参数实例是否自身;(高级)考虑异常安全,声明临时变量并交换内容,使得异常时不会破坏原实例。(P31)Singleton模式。要点是私有化构造函数;考虑多线程,加

2016-09-13 12:05:59 593

转载 C++——STL所有算法介绍

(转者注:君子生非异也,善假于物也"  -- 荀子《劝学》大千世界包括计算机科学发展至今,所有技术都已经越来越高级、便捷,那种原始的盲目追崇底层细节而错过实用高级工具的肤浅想法也是该多受批判才行。C++ STL中的算法精巧实用高效,本就是学习、实用C++的一个重要知识点,更何况转者现在处于笔试面试求职阶段,很多情况下能借助工具省时间是上上策。君子之路漫漫,人

2016-09-13 11:10:52 501

原创 Visual Studio Code 在CentOS下阅读C++源码

VSCode会在扩展那里推荐 C++ Intelligence插件,如果没推荐,就搜索Intelligence。安装时,里面有详细要求,是依赖于GNU Global这个包的,而且版本是>=6.5,所以安装完插件还要去,安装这个;否则阅读源码时不能go to defintion 跳到定义。yum查找没查到,只好源码安装,去官网下载Global;但是在按步骤 ./configu

2016-09-08 14:27:59 2863

转载 算法、技术及其它

为什么“高大上”的算法工程师实际上是个数据民工,要寻找这种理想与现实的差距的原因,首先要理解一个事实:只有人能够理解数据,机器不能。

2016-09-01 11:44:04 431

转载 C++中的临时变量

(转者注:本文转自 http://blog.csdn.net/zxy_snow/article/details/7241820 ,但此博客也为转文。文章详细介绍了临时变量在编译器处理视角中是怎样生存、消亡的,同时涉及其对引用、指针的一些影响,略微深奥,但很清晰。未能考证,据文章介绍知识点来自 >。)它们是被神所遗弃的孩子,没有人见过它们,更没有人知道它们的名

2016-08-12 16:52:21 2314

转载 libevent入门教程:Echo Server based on libevent

转者注:文章给出框架代码的直观描述,还结合实例代码进行演示,每一步又展开详细文档功能列表(同样也是以直观描述方式),而且遇到一些抽象过程就仔细清楚地理清其流程。这些学习总结、思维方式非常值得学习。而且过程中有一些明显跷蹊的细节,一般都会解释,或是伏笔留待思考解释。花了两天的时间在libevent上,想总结下,就以写简单tutorial的方式吧,貌似没有一篇简单的说明,让人马上就能上手用

2016-07-28 14:55:44 351

转载 GCC编译详解+Gdb调试器+Make工程管理器

Linux下编程的重要部件((摘自 http://www.cnblogs.com/azraelly/archive/2012/07/07/2580839.html ,主要涉及了gcc、gdb、Make详细使用。))

2016-07-09 17:09:30 3158 4

转载 C以及C++语言中static作用

文章前面部分转自 MainTao 的http://www.cnblogs.com/dc10101/archive/2007/08/22/865556.html 。文章主要是在讨论C语言下static的作用及意义。其中第二条的保持变量内容持久化,既保证了变量count的作用域可见在函数内,同时又能够保持变量变化记录持久化。第4点总结来自http://www.cnblogs.com/yc_sunn

2016-07-09 16:54:03 483

转载 C++内存管理

一篇好文章,记录一下。转自点http://blog.csdn.net/zhanghefu/article/details/5003407[导语]内存管理是C++最令人切齿痛恨的问题,也是C++最有争议的问题,C++高手从中获得了更好的性能,更大的自由,C++菜鸟的收获则是一遍一遍的检查代码和对C++的痛恨,但内存管理在C++中无处不在,内存泄漏几乎在每个C++程序中都会

2016-07-09 12:11:23 473

转载 Linux的原子操作与同步机制

转者注:转自http://www.cnblogs.com/fanzhidongyzby/p/3654855.html 文章分析了Linux下的一些原子操作及其在操作系统代码中的实现。Linux的原子操作与同步机制 并发问题现代操作系统支持多任务的并发,并发在提高计算资源利用率的同时也带来了资源竞争的问题。例如C语言语句“count++;”在未经编译器优化时生成的汇编

2016-07-08 17:17:25 338

转载 遇见C++ Lambda

转者注:文章转自 http://www.cnblogs.com/allenlooplee/archive/2012/07/03/2574119.html ,思路很顺畅,从简单到复杂,覆盖各种情况。感谢博主Allen Lee。遇见C++ Lambda Written by Allen Lee If you die when there's no one wat

2016-07-08 11:28:30 238

转载 C++命名空间

(转者注:文章转自 http://blog.csdn.net/randyjiawenjie/article/details/6637043 详细介绍了命名空间设计的初衷,设计的逻辑及使用方法)介绍C++命名空间的一篇文章,刚刚学C++的时候,我被满篇的域作用符号::都搞晕了。这篇文章终于让我熟悉了C++的命名空间(为什么需要命名空间、如何使用命名空间)。当然,觉得java的import机制

2016-07-07 09:43:05 249

转载 C/C++ 预编译命令

C/C++ 预编译命令 (此文转载自 Sunbo 的博客园 http://www.cnblogs.com/sunyubo/archive/2010/01/06/2282199.html )(一)基本知识       预处理器指示符以“#”号开头标识,处理这些指示符的程序叫做预处理器。    #include指示符读入指定文件的内容,它有两种格式:

2016-07-06 13:16:54 535

转载 Linux下Git和GitHub使用方法总结

文章为转载。1 Linux下Git和GitHub环境的搭建第一步: 安装Git,使用命令 “sudo apt-get install git”第二步: 到GitHub上创建GitHub帐号第三步: 生成ssh key,使用命令 “ssh-keygen -t rsa -C "[email protected]"”,your_email是你的ema

2016-06-26 01:34:09 288

原创 Ubuntu 15.10下使用FAST迅捷 FW150UM Mini无线USB网卡接收wifi

原本有一个360 usb wifi的,想在Ubuntu下使用,但是查过它的芯片是比较小众,很难找到驱动,于是搜了一晚上的帖子,选中一个据说即插即用的Fast usb wifi 的rtl8188cu。但是到货装上后,查了一下芯片,原来我买错型号了,买到的产品是FAST迅捷 FW150UM Mini无线USB网卡,芯片是RTL8188EUS。本着大不了折腾不出就退换货的想法,硬生生搞了好久,总算能够连接

2016-03-13 18:32:32 3157

原创 leetcode 155: Min Stack

问题描述:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

2016-02-29 01:32:15 259

原创 leetcode 125: Valid Palindrome

问题描述:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example, “A man, a plan, a canal: Panama” is a palindrome. "race a car” is not a palindrom

2016-02-28 11:53:29 413

原创 leetcode 204: Count Primes

问题描述:Description:Count the number of prime numbers less than a non-negative number, n.

2016-02-28 09:57:20 316

原创 leetcode 257:Binary Tree Paths

问题描述:Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree:1 / \ 2 3 \ 5 All root-to-leaf paths are:[“1->2->5”, “1->3”]思路:这又是一道遍历二叉树的题目,谨记叶节点的定义

2016-02-26 00:16:46 493

原创 leetcode 38:count and say

问题描述:The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, …1 is read off as “one 1” or 11. 11 is read off as “two 1s” or 21. 21 is read off as “one 2

2016-02-25 09:46:12 357

原创 leetcode 290: Word Pattern

问题描述:Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str.

2016-02-24 01:03:01 345

原创 leetcode 205 : Isomorphic Strings

##问题描述:##Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.

2016-02-23 00:46:53 320

原创 leetcode 19: Remove Nth Node From End of List

问题描述:Given a linked list, remove the nth node from the end of list and return its head.

2016-02-19 23:27:08 321

原创 leetcode 219: Contains Duplicate II

问题描述:Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i and j is at most k.

2016-02-19 11:58:03 293

原创 leetcode 223: Rectangle Area

问题描述:Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.

2016-02-18 16:01:42 238

原创 leetcode 36: Valid Sudoku

问题描述:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character ‘.’Note: A valid Sudoku board

2016-02-17 16:49:42 259

原创 leetcode 88: Merge Sorted Array

问题描述:Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.

2016-02-17 01:57:43 206

原创 leetcode 160:Intersection of Two Linked Lists

问题描述:Write a program to find the node at which the intersection of two singly linked lists begins.

2016-02-16 23:36:45 335

原创 leetcode 111: Minimum Depth of Binary Tree

问题描述:Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.

2016-02-16 00:22:25 224

原创 leetcode 328 Odd Even Linked List

问题描述:Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.You should try to do it in

2016-02-15 00:12:23 228

原创 leetcode 172: Factorial Trailing Zeroes

问题描述:Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.

2016-01-11 17:51:27 236

原创 leetcode 119:Pascal's Triangle II

问题描述:Given an index k, return the kth row of the Pascal’s triangle.For example, given k = 3, Return [1,3,3,1].Note: Could you optimize your algorithm to use only O(k) extra space?

2016-01-11 17:21:29 241

原创 leetcode 118: Pascal's Triangle

问题描述:Given numRows, generate the first numRows of Pascal’s triangle.

2016-01-05 23:46:50 277

原创 leetcode 66: Plus One

问题描述: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of the list.

2016-01-05 23:41:09 347

原创 leetcode 26: Remove Duplicates from Sorted Array

问题描述:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with

2016-01-05 23:28:00 221

原创 leetcode 198: House Robber

问题描述:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent h

2016-01-05 23:16:50 276

原创 leetcode 107: Binary Tree Level Order Traversal II

问题描述:Given a binary tree, return the bottom-up level order traversal of its nodes’ values.

2016-01-05 01:20:16 262

原创 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

2016-01-05 00:25:41 244

原创 leetcode 101: Symmetric Tree

leetcode 101: Symmetric Tree

2015-12-31 01:03:10 291

Juyere_web安全_part01

Juyere_part01 仅供学习交流参考 有错评论 不喜勿喷

2013-12-11

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

TA关注的人

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