码迷,mamicode.com
首页 > 编程语言
Set Matrix Zeroes leetcode java
题目:Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra s....
分类:编程语言   时间:2014-08-03 07:49:44    阅读次数:193
Plus One leetcode java
题目: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 i....
分类:编程语言   时间:2014-08-03 07:49:34    阅读次数:246
wxPython布局管理器(sizer)学习(1)
个人认为学习GUI程序开发,最重要的两个基础点就是:事件处理和界面布局。事件处理能够让你在界面上的控件被鼠标、按键等触发的时候做出合适的响应,比如点击“保存”按钮之后弹出标准的文件保存对话框。另外一件重要的就是界面的布局,之所以要有GUI程序,就是为了有良好的用户体验,如果一个软件界面布局乱七八糟的...
分类:编程语言   时间:2014-08-03 07:49:04    阅读次数:446
C++ string实现原理
C++程序员编码过程中经常会使用string(wstring)类,你是否思考过它的内部实现细节。比如这个类的迭代器是如何实现的?对象占多少字节的内存空间?内部有没有虚函数?内存是如何分配的?...
分类:编程语言   时间:2014-08-03 05:45:54    阅读次数:350
Spiral Matrix leetcode java
题目:Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[[ ....
分类:编程语言   时间:2014-08-03 05:24:09    阅读次数:276
Pascal's Triangle II Leetcode java
题目: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 ....
分类:编程语言   时间:2014-08-03 05:24:06    阅读次数:304
Spiral Matrix II leetcode java
题目: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n = 3,You should return the foll....
分类:编程语言   时间:2014-08-03 05:21:18    阅读次数:272
Pascal's Triangle leetcode java(杨辉三角)
题目:Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1...
分类:编程语言   时间:2014-08-03 05:16:25    阅读次数:303
Triangle leetcode java
题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the....
分类:编程语言   时间:2014-08-03 04:40:04    阅读次数:351
Python处理Excel文档(xlrd, xlwt, xlutils)
简介xlrd,xlwt和xlutils是用Python处理Excel文档(*.xls)的高效率工具。其中,xlrd只能读取xls,xlwt只能新建xls(不可以修改),xlutils能将xlrd.Book转为xlwt.Workbook,从而得以在现有xls的基础上修改数据,并创建一个新的xls,实现...
分类:编程语言   时间:2014-08-03 04:39:54    阅读次数:338
MAYA 多线程
'''Usage:def timerTest(): print 'Hello World!'#create and start a timertimer = Timer(30, timerTest, repeat=True)timer.start()#To stop the timertimer.s...
分类:编程语言   时间:2014-08-03 04:39:44    阅读次数:345
【C++基础 07】运算符重载
C++提供了operator关键字,它和运算符一起使用,表示一个运算符函数,理解时应将operator=整体上视为一个函数名。...
分类:编程语言   时间:2014-08-03 01:47:04    阅读次数:292
Java程序员修炼之道之预告片
后来我意识到,我不能只抱怨,作为一个写了10多年代码,带过项目、做过业务最终还是写代码, 有车有房有妻有娃的四有不太牛逼的程序员,我有责任帮助刚入行的、入行时间不短的,还没车没房的Java程序员们掌握一些基础的东西。 如果你掌握了这些基础的东西的话,而且英语口语还凑合的话,欢迎来找我帮你内部推荐工作,估计一万多的月薪是不成问题的,至于30、40万的年薪应该也是有机会的。...
分类:编程语言   时间:2014-08-03 01:46:14    阅读次数:337
JavaScript为什么是面向对象的语言?
JavaScript = ECMAScript(core) + DOM + BOM 一种面向对象语言需要向开发者提供四种基本能力: 1. 封装——把相关信息(无论数据或方法)存储在对象中的能力 2. 聚集——把一个对象存储在另一个对象的能力 3. 继承...
分类:编程语言   时间:2014-08-02 23:38:24    阅读次数:552
HDU - 1850 - Being a Good Boy in Spring Festival
先上题目:Being a Good Boy in Spring FestivalTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4557Accept...
分类:编程语言   时间:2014-08-02 23:17:04    阅读次数:309
【转】c++ 获取程序运行时间
转自:http://blog.csdn.net/ghevinn/article/details/22800059 DWORD start_time=GetTickCount(); {...} DWORD end_time=GetTickCount();...
分类:编程语言   时间:2014-08-02 23:15:24    阅读次数:375
C语言函数sscanf()的用法 (转载
在我的学习过程中,从文件读取数据是一件很麻烦的事,所幸有sscanf()函数。 C语言函数sscanf()的用法sscanf() - 从一个字符串中读进与指定格式相符的数据. 函数原型: int sscanf( string str, string fmt, mixed var1, mixed...
分类:编程语言   时间:2014-08-02 23:14:24    阅读次数:325
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!