菱纱梦

导航

2014年9月17日 #

C++学习笔记 <const限定词>

摘要: 1、cons可以限定一个变量,是的它的值不能被改变2、默认情况下,const对象仅在文件内有效。 编译器在编译时,会把程序中所有用到const变量的地方替换成const的初始值,因此每个用到const变量的文件中都要有const变量的定义,为了支持这一用法,同时避免同一变量的多次定义,cons... 阅读全文

posted @ 2014-09-17 21:47 菱纱梦 阅读(159) 评论(0) 推荐(0) 编辑

Search for a Range <leetcode>

摘要: Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord... 阅读全文

posted @ 2014-09-17 12:04 菱纱梦 阅读(150) 评论(0) 推荐(0) 编辑

Subsets <leetcode>

摘要: Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co... 阅读全文

posted @ 2014-09-17 10:44 菱纱梦 阅读(143) 评论(0) 推荐(0) 编辑