首页 > 编程语言
Generate Parentheses leetcode java
题目: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....
分类:编程语言   时间:2014-08-02 12:19:33    收藏:0  评论:0  赞:0  阅读:353
C++ Primer 笔记 第三章
C++ Primer 第三章 标准库类型3.1using声明例: using namespace atd; using std::cin;3.2string类型初始化方式 string s1默认构造函数,s1为空串string s2(s1)将s2初始化为s1的一个副本string s3(“valu....
分类:编程语言   时间:2014-08-02 12:19:23    收藏:0  评论:0  赞:0  阅读:400
Unique Paths II leetcode java
题目:Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty spa....
分类:编程语言   时间:2014-08-02 12:19:13    收藏:0  评论:0  赞:0  阅读:279
Unique Paths leetcode java
题目: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at a....
分类:编程语言   时间:2014-08-02 12:17:23    收藏:0  评论:0  赞:0  阅读:417
Java的finally理解
1.为什么要用finally先看一个没有finally的异常处理try-catch语句:如果count为要使用到的资源,而且用完要求释放此资源。那么我们能够把释放资源的语句放到try-catch后运行,当前的程序无论是在运行完try语句块还是catch语句块,都会顺序运行到以下释放资源的语句。int...
分类:编程语言   时间:2014-08-02 12:14:03    收藏:0  评论:0  赞:0  阅读:264
Rotate Image leetcode java
题目:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?题解:这道题就是考察很....
分类:编程语言   时间:2014-08-02 10:02:03    收藏:0  评论:0  赞:0  阅读:409
Roman to Integer leetcode java
题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 题解:这道题跟interger to roman一样都得先熟悉罗马数字的规则。罗...
分类:编程语言   时间:2014-08-02 10:01:33    收藏:0  评论:0  赞:0  阅读:347
C++类与对象
【1】类的内存问题 类是抽象的,不占用内存,而对象是具体的,占用 存储空间。在一开始时弄清对象和类的关系是十分 重要的。【2】类的声明 如果在类的定义中既不指定private也不指定public,则系统就默认为是私有的。 归纳以上对类类型的声明,可得到其一般形式如下: class 类名 ...
分类:编程语言   时间:2014-08-02 09:59:53    收藏:0  评论:0  赞:0  阅读:365
C++表达式
冰哥哥最近在刷笔试题,昨晚问了一个没有意义,但很有意思的一个问题:求输出:#includeint main(){ int a=10; a+=a-=a++; std::cout操作符属于同一优先级,所以不能写出a->b++这样的表达式)于是,上面的运算表达式可以写成:a+=a-...
分类:编程语言   时间:2014-08-02 09:59:43    收藏:0  评论:0  赞:0  阅读:355
javascript编程规范
一、javascript模块化编程规范:二、关于commenjs规范和AMD规范:根本不同:前者用于服务器端同步加载模块;后者是客户端异步加载模块。同点:两者都有一个全局函数require(),用于加载模块;只是AMD规范中的require函数需要有2个参数。三、CommonJS出现时间更早,代表有...
分类:编程语言   时间:2014-08-02 09:58:03    收藏:0  评论:0  赞:0  阅读:331
在ubuntu linux 中编写一个自己的python脚本
在ubuntu linux 中编写一个自己的简单的bash脚本。实现功能:终端中输入简单的命令(以pmpy为例(play music python),为了区别之前说的bash脚本添加了py后缀),来实现音乐的播放。注:本人ununut中安装了audacious,所以就以audacious为例,来实现...
分类:编程语言   时间:2014-08-02 09:57:53    收藏:0  评论:0  赞:0  阅读:510
基于多线程的TCP服务器项目【开源】
本文提供一个完整的TCP Server实例,包括动态连接库、单元测试、验收测试、Winform模拟测试。供新手学习,还望老手多提意见。
分类:编程语言   时间:2014-08-02 09:57:13    收藏:0  评论:0  赞:0  阅读:382
Reverse Integer leetcode java
题目:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here...
分类:编程语言   时间:2014-08-02 09:56:33    收藏:0  评论:0  赞:0  阅读:340
深入分析 Java 中的中文编码问题--转
几种常见的编码格式为什么要编码不知道大家有没有想过一个问题,那就是为什么要编码?我们能不能不编码?要回答这个问题必须要回到计算机是如何表示我们人类能够理解的符号的,这些符号也就是我们人类使用的语言。由于人类的语言有太多,因而表示这些语言的符号太多,无法用计算机中一个基本的存储单元—— byte 来表...
分类:编程语言   时间:2014-08-02 09:56:23    收藏:0  评论:0  赞:0  阅读:364
Integer to Roman leetcode java
题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.题解:这道题。。还有哪个roman to integer。。第一件事 就是先把r....
分类:编程语言   时间:2014-08-02 09:54:23    收藏:0  评论:0  赞:0  阅读:517
Binary Tree Maximum Path Sum leetcode java
题目:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1...
分类:编程语言   时间:2014-08-02 09:50:13    收藏:0  评论:0  赞:0  阅读:338
Restore IP Addresses leetcode java
题目:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return [....
分类:编程语言   时间:2014-08-02 09:49:53    收藏:0  评论:0  赞:0  阅读:353
Java epoll
the Gemfire consultant add one more parameter to JVM -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider to be honest, I had no idea what it was. so I googled it. the key thin...
分类:编程语言   时间:2014-08-02 01:57:13    收藏:0  评论:0  赞:0  阅读:447
Windows客户端C/C++编程规范“建议”——表达式和运算
本文涉及C++编程中表达式和运算的规范相关建议...
分类:编程语言   时间:2014-08-02 01:55:42    收藏:0  评论:0  赞:0  阅读:378
Windows客户端C/C++编程规范“建议”——结构
本文涉及C++编程中结构的规范相关建议...
分类:编程语言   时间:2014-08-02 01:55:32    收藏:0  评论:0  赞:0  阅读:384
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!