Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t ...
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2016-03-24 13:05:38
阅读次数:
123
I题 Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transact ...
分类:
其他好文 时间:
2016-03-24 13:01:55
阅读次数:
113
一言以蔽之,json返回的是一串数据;而jsonp返回的是脚本代码(包含一个函数调用); JSON其实就是JavaScript中的一个对象,跟var obj={}在质上完全一样,只是在量上可以无限扩展。简单地讲,json其实就是JavaScript中的对象(Object)和数组(Array,其实也是 ...
分类:
Web程序 时间:
2016-03-24 12:48:06
阅读次数:
178
这是简单的将一个变量post到另外一个页面 $url = '';$data = array('a'=> 'b');$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER ...
分类:
Web程序 时间:
2016-03-24 11:27:50
阅读次数:
151
这题是在32. Search in Rotated Sorted Array I的基础上,处理特殊情况有重复数据的问题,有两个代表例子 如3,1,1和1,1,3,1只需在原基础上考虑这两种请求,完善上一题的分类思想,还有就是二分查找的迭代会完成接 下来的事情 ...
分类:
其他好文 时间:
2016-03-24 08:46:15
阅读次数:
173
一言以蔽之,json返回的是一串数据;而jsonp返回的是脚本代码(包含一个函数调用); JSON其实就是JavaScript中的一个对象,跟var obj={}在质上完全一样,只是在量上可以无限扩展。简单地讲,json其实就是JavaScript中的对象(Object)和数组(Array,其实也是 ...
分类:
Web程序 时间:
2016-03-24 01:19:07
阅读次数:
254
1.action类,使用注解配置的: package com.t5.manage.action;import java.awt.Font;import java.io.FileOutputStream;import java.io.IOException;import java.util.Array ...
分类:
数据库 时间:
2016-03-23 22:09:47
阅读次数:
288
Leetccode 136 SingleNumber I Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should ...
分类:
编程语言 时间:
2016-03-23 21:50:12
阅读次数:
274
一言以蔽之,json返回的是一串数据;而jsonp返回的是脚本代码(包含一个函数调用); JSON其实就是JavaScript中的一个对象,跟var obj={}在质上完全一样,只是在量上可以无限扩展。简单地讲,json其实就是JavaScript中的对象(Object)和数组(Array,其实也是
分类:
Web程序 时间:
2016-03-23 20:06:16
阅读次数:
164