码迷,mamicode.com
首页 >  
搜索关键字:palindrome linked li    ( 14538个结果
mouseover,mouseout,mouseenter,mouseleave的区别
相信做前端开发的都听说过“冒泡型事件”吧,《JavaScript高级程序设计》第九章有详细的讲述,但是,在学习的时候一知半解,也没详细去理解,导致最近在工作中碰到了问题:有许多 li 标签,标签上有2个按钮,当且仅当鼠标移入 li 时才会显示上面的2个按钮,如下图,左边是默认状态,右边是鼠标移入状态...
分类:其他好文   时间:2014-06-25 16:54:40    阅读次数:205
python基础-异常
什么是异常?python用异常对象(exception object)来表示异常情况。遇到错误后,就会引发异常。如果异常未被处理或捕获,程序就会用所谓的回溯(traceback)终止执行。>>> 1 / 0Traceback (most recent call last): File "", li....
分类:编程语言   时间:2014-06-25 16:25:40    阅读次数:604
Java循环中删除一个列表元素
本文主要想讲述一下我对之前看到一篇文章的说法。如果跟你的想法有出入,欢迎留言,一起讨论。 #3. 在循环中删除一个列表元素   考虑下面的代码,迭代过程中删除元素: ArrayList list = new ArrayList(Arrays.asList("a", "b", "c", "d")); for (int i = 0; i < list.size(); i++) { li...
分类:编程语言   时间:2014-06-25 00:27:46    阅读次数:293
LeetCode :: Insertion Sort List [详细分析]
Sort a linked list using insertion sort. 仍然是一个非常简洁的题目,让我们用插入排序给链表排序;这里说到插入排序,可以来回顾一下, 最基本的入门排序算法,就是插入排序了;时间复杂度为n^2,最基本的插入排序是基于数组实现的,下面给出基于数组实现的插入排序,来体会一个插入排序的思想; 以下仅为数组实现,不是解题代码,没兴趣可以跳过。 vo...
分类:其他好文   时间:2014-06-24 23:56:31    阅读次数:359
LeetCode :: Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given {1,2,3,4}, reorder it t...
分类:其他好文   时间:2014-06-24 21:55:30    阅读次数:279
Add Two Numbers
题目 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return...
分类:其他好文   时间:2014-06-24 21:46:24    阅读次数:249
16 如何使一个文本框只能接受数字
(1) 使用NumericUpDown (2) 处理KeyPress 按钮 (3) 处理Text_Changed 事件 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Li...
分类:其他好文   时间:2014-06-24 21:45:43    阅读次数:173
LeetCode:Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric  characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" i...
分类:其他好文   时间:2014-06-24 18:16:02    阅读次数:147
简明Python教程笔记(一)
#!/usr/bin/envpython#Filename:helloworld.py#Theuseof‘and"print‘hello,world!‘print"hello,world!"#Theuseof‘‘‘and"""print‘‘‘Thisisamulti-linestring.Thisisthefirstline.Thisisthesecondline."What‘syourname?"Iasked.Hesaid"Bond,JamesBond."‘‘‘print"""Thisisamulti-li..
分类:编程语言   时间:2014-06-24 17:05:23    阅读次数:239
LeetCode: Valid Palindrome [125]
【题目】 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a palindrome. Note: Have you consider that the string m...
分类:其他好文   时间:2014-06-24 15:35:07    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!