码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
Same Tree
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
LeetCode 1 Two Sum(二分法)
题目来源: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
python 算法练习
根据给定的线性函数来确定函数的表达形式: 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
jquery如何DrownList下拉t框的取值和赋值
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++解决error C4996报错
今天用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
[jquery]高级篇--js绑定事件
参考: http://www.cnblogs.com/leejersey/p/3545372.htmljQuery on()方法是官方推荐的绑定事件的一个方法。$(selector).on(event,childSelector,data,function,map)由此扩展开来的几个以前常见的方法....
分类:Web程序   时间:2015-12-15 18:04:29    阅读次数:122
ie7-8 js表单提交的问题
需求是上传一个图片,一开始是这么安排目录结构的 上传照片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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!