码迷,mamicode.com
首页 >  
搜索关键字:show all    ( 41857个结果
[LeetCode] Palindrome Partition [11]
题目:Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. 解题思路: 回文划分,题目意思是给一个字符串,找出将字符串划分为一系列回文子串的各种可能组合。例如,一个子串“aab“,你需要返回["aa","b"],["a","a","b"]。这个题目的解法也是非常的典型---循环加递归,...
分类:其他好文   时间:2014-06-09 23:24:11    阅读次数:256
jQuery 复制节点的元素实现添加到购物车功能
描述: 用户点击左边div中的商品,对应商品会自动添加到右面的div中,类似电子商城中的添加到购物车功能。 主要用到了jquery中的复制节点功能,基本原理是首先获取点击的元素,然后将相应信息进行克隆,然后添加到右面的div中。 show you code: jquery test .left { float: left; width: 500px; heigh...
分类:Web程序   时间:2014-06-08 18:01:23    阅读次数:253
Restore IP Addresses
题目 Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given "25525511135", return ["255.255.11.135", "255.255.111.3...
分类:其他好文   时间:2014-06-08 10:37:47    阅读次数:273
一入python深似海--函数与文件
先上写干货,几个开源网站: github.com launchpad.netgitorious.orgsourceforge.netfreecode.com 今天介绍一下python函数和文件读写的知识。 函数 def print_two(*args):#That tells Python to take all the arguments to the function a...
分类:编程语言   时间:2014-06-08 10:37:23    阅读次数:277
用jquery实现html5的placeholder功能
html5的placeholder功能在表单中经常用到,它主要用来提示用户输入信息,当用户点击该输入框之后,提示文字会自动消失。 我们用jquery实现类似的功能: 当输入框获得焦点时,清空输入框中的提示文字。 当输入框失去焦点时,若输入框中的数据为空,则再次出现提示文体。 效果图: talk is cheap , show you code: jquery test ...
分类:Web程序   时间:2014-06-08 10:29:07    阅读次数:225
Android自定义View(一)
一、自定义视图类继承View或者View的子类 All of the view classes defined in the Android framework extend View. Your custom view can also extend Viewdirectly, or you can save time by extending one of the exist...
分类:移动开发   时间:2014-06-08 10:11:27    阅读次数:342
POP动画[2]
POP动画[2]1:定制控制器间的转场动画.源码有点多-_-!!//// RootViewController.h// Animation//// Copyright (c) 2014年 Y.X. All rights reserved.//#import @interface RootVie...
分类:其他好文   时间:2014-06-08 01:13:36    阅读次数:735
Leetcode::Pathsum & Pathsum II
PathsumDescription:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equa...
分类:其他好文   时间:2014-06-08 01:11:46    阅读次数:395
LeetCode:Spiral Matrix I II
Spiral MatrixGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example, Given the following ...
分类:其他好文   时间:2014-06-07 22:57:31    阅读次数:236
LeetCode:Minimum Path Sum
题目链接 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its p...
分类:其他好文   时间:2014-06-07 21:59:08    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!