首页 > 编程语言
[leetcode]Maximum Depth of Binary Tree @ Python
原题地址:https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/题意:Given a binary tree, find its maximum depth.The maximum depth is the number of n...
分类:编程语言   时间:2014-06-12 13:54:49    收藏:0  评论:0  赞:0  阅读:446
sae 上传文件 java实现
不讲废话上代码 1 /** 2 * 上传语音消息至sae服务器 3 * 4 * @param requestUrl 上传链接 5 * @param requestMethod http请求方式 6 */ 7 8 publi...
分类:编程语言   时间:2014-06-12 14:41:11    收藏:0  评论:0  赞:0  阅读:345
[leetcode]Merge Intervals @ Python
原题地址:https://oj.leetcode.com/problems/merge-intervals/题意:Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6]...
分类:编程语言   时间:2014-06-12 14:55:08    收藏:0  评论:0  赞:0  阅读:321
[leetcode]Text Justification @ Python
原题地址:https://oj.leetcode.com/problems/text-justification/题意:Given an array of words and a lengthL, format the text such that each line has exactlyLcha...
分类:编程语言   时间:2014-06-12 15:11:29    收藏:0  评论:0  赞:0  阅读:385
JAVA修饰符类型(public,protected,private,friendly)
JAVA修饰符类型(public,protected,private,friendly)public的类、类属变量及方法,包内及包外的不论什么类均能够訪问;protected的类、类属变量及方法,包内的不论什么类,及包外的那些继承了此类的子类才干訪问;private的类、类属变量及方法,包内包外的不...
分类:编程语言   时间:2014-06-12 15:20:59    收藏:0  评论:0  赞:0  阅读:387
用java读取properties文件--转
今天为了通过java读取properties文件,google了很长时间,终于找到了。现在特记录之和大家一起分享。 下面直接贴出代码:java类public class Mytest public static void readFile(String fileName) {//传入参数file.....
分类:编程语言   时间:2014-06-12 15:50:46    收藏:0  评论:0  赞:0  阅读:419
[leetcode]Insert Interval @ Python
原题地址:https://oj.leetcode.com/problems/insert-interval/题意:Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if ne...
分类:编程语言   时间:2014-06-12 16:12:27    收藏:0  评论:0  赞:0  阅读:483
C++编程命名规范
原地址:http://www.cnblogs.com/joinclear/archive/2013/02/21/2921422.htmlC++编程命名规范0前言根据多年工作经验和其它命名规范整理而成,个人感觉比较规范的标准,现应用于我的开发团队。1命名通用规则文件名、函数名、变量名命名应具有描述性,...
分类:编程语言   时间:2014-06-12 16:23:20    收藏:0  评论:0  赞:0  阅读:360
[leetcode]Maximum Subarray @ Python
原题地址:https://oj.leetcode.com/problems/maximum-subarray/题意:Find the contiguous subarray within an array (containing at least one number) which has the ...
分类:编程语言   时间:2014-06-12 17:05:27    收藏:0  评论:0  赞:0  阅读:364
JavaScript高级程序设计45.pdf
客户区坐标位置clientX和clientY保存着鼠标指针在视口中的水平位置坐标和垂直位置坐标(显示出页面的部分叫做客户区,坐标信息不包括页面的滚动距离)var div=document.getElementById("myDiv");EventUtil.addHandler(div,"click"...
分类:编程语言   时间:2014-06-12 17:19:09    收藏:0  评论:0  赞:0  阅读:326
[leetcode]Jump Game II @ Python
原题地址:https://oj.leetcode.com/problems/jump-game-ii/题意:Given an array of non-negative integers, you are initially positioned at the first index of the ...
分类:编程语言   时间:2014-06-12 17:38:10    收藏:0  评论:0  赞:0  阅读:304
Java抓取网页数据(原网页+Javascript返回数据)
转载请注明出处!原文链接:http://blog.csdn.net/zgyulongfei/article/details/7909006有时候因为种种原因,我们须要採集某个站点的数据,但因为不同站点对数据的显示方式略有不同!本文就用Java给大家演示怎样抓取站点的数据:(1)抓取原网页数据;(2)...
分类:编程语言   时间:2014-06-12 17:49:11    收藏:0  评论:0  赞:0  阅读:399
[leetcode]Jump Game @ Python
原题地址:https://oj.leetcode.com/problems/jump-game/题意:Given an array of non-negative integers, you are initially positioned at the first index of the arr...
分类:编程语言   时间:2014-06-12 18:04:18    收藏:0  评论:0  赞:0  阅读:508
使用notepad运行python
Notepad++ 是一个开源的文本编辑器,功能强大而且使用方便,一般情况下,Notepad++作为代码查看器,很方便,但是每次要运行的时候,总是需要用右键打开其他的IDE来编译和运行,总有些不方便。特别是像lua这种语言,在Eclipse中无法集成,因此运行的时候,总是不方便。我搜到了一个使用No...
分类:编程语言   时间:2014-06-12 18:23:10    收藏:0  评论:0  赞:0  阅读:420
Effective Java提升Code Coverage代码涵盖率 - 就是爱Java
虽然我们已经有了测试程序,但是如何得知是否已完整测试了主程序?,透过Code Coverage代码涵盖率,我们可以快速地得知,目前系统中,有多少程序中被测试过,不考虑成本跟投资效益比,涵盖率越高,代表系统如预期正常运作的面向也越广泛。
分类:编程语言   时间:2014-06-12 19:15:13    收藏:0  评论:0  赞:0  阅读:367
Effective Java实作Comparable - 就是爱Java
当集合或数组内的对象需要排序时,会利用Collections.sort或Arrays.sort来进行排序,通常会implement Comparable,来实现自定义排序,透过回传值来表示排序的大小。
分类:编程语言   时间:2014-06-12 19:32:55    收藏:0  评论:0  赞:0  阅读:359
Effective Java实作Comparator - 就是爱Java
如果集合或数组内的对象,有1个以上不同的排序逻辑时,那该如何处理呢?尤其是当已经实现了Comparable,又不能变动原本的逻辑时,Mix会采用Comparator来处理。
分类:编程语言   时间:2014-06-12 19:31:29    收藏:0  评论:0  赞:0  阅读:395
Effective Java实作toString() - 就是爱Java
Object class中,也定义了toString()这个方法,因此所有的class也都继承这个方法。默认是传回这个对象完整类别名称,后面接一个"@",及一个不带正副号的十六进制hash码。
分类:编程语言   时间:2014-06-12 19:35:37    收藏:0  评论:0  赞:0  阅读:347
C++ 虚函数表解析
这篇博客“http://blog.csdn.net/haoel/article/details/1948051/”比较深度介绍了虚函数表解析。C++中的虚函数的作用主要是实现了多态的机制。关于多态,简而言之就是用父类型别的指针指向其子类的实例,然后通过父类的指针调用实际子类的成员函数。这种技术可以让...
分类:编程语言   时间:2014-06-12 20:05:25    收藏:0  评论:0  赞:0  阅读:509
C语言之----面向对象的方法实现链表的操作
1 /* 2 * 详细运行过程: 本程序实现的是对链表的简单的操作,即链表的增 删 改 查 销毁 初始化 3 * 运用面向对象的思想,实现一个类op,op中包括了所有的链表操作方法 4 * 其他的程序调用op类,实现对表链表的操作 5 * 链表包括 6 * 面向对象,简单易学程序更加紧...
分类:编程语言   时间:2014-06-12 20:21:49    收藏:0  评论:0  赞:0  阅读:593
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!