码迷,mamicode.com
首页 >  
搜索关键字:find button    ( 34496个结果
leetCode-002 Median of Two Sorted Arrays
leetCode-002 Median of Two Sorted Arrays 【题目】 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 【题意】 有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
分类:其他好文   时间:2014-05-15 04:42:05    阅读次数:274
LeetCode-001 Two Sum
LeetCode-001 Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:其他好文   时间:2014-05-15 04:34:50    阅读次数:293
【python标准库学习】re模块
1.什么是re         正则表达式一门相对通用的语言,在python中也有对正则表达式的支持,那就是的内置re模块。正则表达式就是一系列的规则去匹配字符串然后进行相应的操作,这些规则网上一搜一大片,而re则是运用正则表达式来提供一系列的功能强大的接口让我们来调用。通常我们在对日志文件进行操作的时候会对正则表达式运用的比较多来得到我们希望得到的数据。 2.python中的转义符...
分类:编程语言   时间:2014-05-15 03:58:49    阅读次数:465
LeetCode--Single Number II
Single Number II  Total Accepted: 14472 Total Submissions: 44420My Submissions Given an array of integers, every element appears three times except for one. Find that single one. Note: Y...
分类:其他好文   时间:2014-05-15 01:23:42    阅读次数:273
Android开发技巧之使用weight属性实现控件的按比例分配空间
从今天开始,把看书时候的知识点整理成博客, 这个比较简单,估计有经验的都用过,weight属性   在做Android布局的时候,经常遇到需要几个控件按比例分配空间的情况 比如下图效果 在底部设置两个button,占据底部宽度一部分的同时,保持1:3的比例, 当然了,这么难看的布局用处不大,仅是用来说明weight的用法 布局代码如下: <LinearLayout xmlns:...
分类:移动开发   时间:2014-05-15 00:07:46    阅读次数:514
【LeetCode】- Two Sum(两数相加)
[ 问题: ] Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:其他好文   时间:2014-05-15 00:04:39    阅读次数:377
鸽巢原理
鸽巢原理: n+1个鸽子放入n个窝中,至少有一个窝含有两只鸽子 Find a multipleTime Limit:1000MSMemory Limit:65536KTotal Submissions:5590Accepted:2434Special JudgeDes...
分类:其他好文   时间:2014-05-14 23:00:02    阅读次数:375
HOWTO Use Python in the web — Python v3.0.1 documentation
HOWTO Use Python in the web — Python v3.0.1 documentationmod_python?People coming from PHP often find it hard to grasp how to use Python in the web. T...
分类:编程语言   时间:2014-05-14 22:31:33    阅读次数:401
Best Time to Buy and Sell Stock III
Total Accepted: 8400 Total Submissions: 38235 My Submissions Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profi...
分类:其他好文   时间:2014-05-14 19:39:53    阅读次数:275
在windows server 2008中安装SQL Server 2008 R2 1433端口未启用解决办法
SQLServer一般默认的端口为1433,但有时会遇到无法连接端口1433的问题,检查端口1433是否启用的方法为:开始–>输入cmd–>回车–>telnetlocalhost1433->回车出现黑屏,表示本机连接端口1433成功。或者开始–>输入cmd–>回车–>netstat-an|find"1433"->..
分类:数据库   时间:2014-05-14 18:20:51    阅读次数:409
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!