https://leetcode.com/problems/same-tree/Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equ...
分类:
其他好文 时间:
2015-12-15 22:57:03
阅读次数:
378
题目来源:https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function...
分类:
其他好文 时间:
2015-12-15 22:52:20
阅读次数:
264
根据给定的线性函数来确定函数的表达形式: examples: get_function([0,1,2,3,4]) =>f(x)=x get_function([1,4,7,10,13]) => f(x)=3x+1 get_function([0,3,6,9,12]) => f(x)=3x将数...
分类:
编程语言 时间:
2015-12-15 22:30:58
阅读次数:
224
1 jQuery("#select_id").change(function(){}); // 1.为Select添加事件,当选择其中一项时触发 2 var checkValue = jQuery("#select_id").val(); // 2.获取Select选中项的Value ...
分类:
Web程序 时间:
2015-12-15 22:29:29
阅读次数:
245
function gcd(a,b){return b == 0 ? a : gcd(b,a%b);}function lcm(a,b){return a * b / gcd(a,b);}console.log(gcd(24,42));console.log(lcm(16,36));
分类:
其他好文 时间:
2015-12-15 19:28:11
阅读次数:
112
今天用c++写了个数独程序,在编译过程中报了一个错误:1>------ 已启动生成: 项目: sudoku, 配置: Debug Win32 ------1> main.cpp1> function.cpp1>e:\program files (x86)\microsoft visual stu.....
分类:
编程语言 时间:
2015-12-15 18:19:19
阅读次数:
379
http://levi.yii.so/archives/3453$("#first").click(function(){var w = window.open();$.ajax({type: 'POST',url: '/deposit/paypoints',success: function(re...
分类:
其他好文 时间:
2015-12-15 18:16:04
阅读次数:
132
参考: http://www.cnblogs.com/leejersey/p/3545372.htmljQuery on()方法是官方推荐的绑定事件的一个方法。$(selector).on(event,childSelector,data,function,map)由此扩展开来的几个以前常见的方法....
分类:
Web程序 时间:
2015-12-15 18:04:29
阅读次数:
122
需求是上传一个图片,一开始是这么安排目录结构的 上传照片js部分为:$('.upload').click(function(){ $('#uppic').click(); })$("#uppic").change(function(){ var role ...
分类:
Web程序 时间:
2015-12-15 14:16:29
阅读次数:
152
写了两个回到顶部的函数一个是这样的:function fanhui(){ var dist; var timer; var flag=true; var up_btn=document.getElementById("up_btn"); var clientHeight=document.docum...
分类:
其他好文 时间:
2015-12-15 14:09:44
阅读次数:
131