1. type()函数,指出指定对象的类型。2.
tuple和list的区别:tuple是不能改变的,与之对应,它没有remove等函数,而list具有相应的函数3.tuple或者list访问:范围引用:
基本样式[下限:上限:步长]>>>print s1[:5] # 从开始到下标4 (下标5的元素...
分类:
其他好文 时间:
2014-05-09 11:27:19
阅读次数:
300
【题目】
原文:
1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables are fine. An
extra copy of...
分类:
其他好文 时间:
2014-05-07 08:48:12
阅读次数:
372
一 线性表
1.1 数组
1.1.1 Remove Duplicates from Sorted Array
1.1.2 Remove Duplicates from Sorted Array II
1.1.3 Search in Rotated Sorted Array
1.1.4 Search in Rotated Sorted Array II
1.1.5 Median of...
分类:
其他好文 时间:
2014-05-07 04:24:26
阅读次数:
363
使用了LoadRunner的虚拟IP后,向一切恢复如初,需要释放IP,如何进行释放呢,其实很简单。方法有二:1.打开IPwizard点击remove,全部移除之前分配的IP。2.点击如下图的restore...单选按钮无论是方法1或方法2均需要操作完后重启loadrunner服务器,完成真正的释放。使用IP欺骗有..
分类:
其他好文 时间:
2014-05-06 17:41:40
阅读次数:
300
话不多说,直接上代码:sudo apt-get remove ibussudo apt-get
install fcitx fcitx-config-gtk im-switchsudo dpkg -i *.debsudo apt-get -f
installsudo dpkg -i *.debsud...
分类:
其他好文 时间:
2014-05-06 01:11:53
阅读次数:
269
遇到的问题:input{1,1,1}, output{1,1}, expected{1},
原因在于若temp.val==temp.next.val, 则需要temp.next=temp.next.next,
这时候就不要temp=temp.next了注意停止条件不光是temp!=null,还应该有...
分类:
其他好文 时间:
2014-05-05 22:47:08
阅读次数:
454
题目:
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new len...
分类:
其他好文 时间:
2014-05-05 12:58:57
阅读次数:
294
复制控制--消息处理示例说明: 有些类为了做一些工作需要对复制进行控制。为了给出这样的例子,我们将概略定义两个类,这两个类可用于邮件处理应用程序。Message类和 Folder类分别表示电子邮件(或其他)消息和消息所出现的目录,一个给定消息可以出现在多个目录中。Message上有 save和 remove操作,用于在指定Folder中保存或删除该消息。数据结构: 对每个Message...
分类:
编程语言 时间:
2014-05-04 17:46:17
阅读次数:
510
Given a collection of numbers that might
contain duplicates, return all possible unique permutations.For
example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-05-04 10:20:44
阅读次数:
240
一次性通过的,比较顺利,从读题到编写到检查到通过,14分50秒,我在不断进步中,相信经过一段时间联系,这种题可以一眼就写出来,不超过5分钟。这道题应该说方法跟
Remove Duplicates from sorted Array挺类似的My Solution: 1 public class Sol...
分类:
其他好文 时间:
2014-05-02 12:56:10
阅读次数:
260