码迷,mamicode.com
首页 >  
搜索关键字:qt quick example    ( 27971个结果
LeetCode: Remove Duplicates from Sorted Array II [080]
【题目】 Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array A = [1,1,1,2,2,3], Your function should return length = 5, and A is now [1,1,2,2,3]. 【题意】 给定一个有序数组,给数组去重,和Remove Duplicates from...
分类:其他好文   时间:2014-06-03 05:36:24    阅读次数:219
LeetCode: Remove Duplicates from Sorted List [082]
【题目】 Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 【题意】 给定一个已排序的链表,删除其中的重复元素 【思路】 维护两个指针prev和cur, cur指针负责扫描链表,prev指向cur的前一...
分类:其他好文   时间:2014-06-03 04:05:39    阅读次数:231
QT表单样式规则
1.全局匹配: *,匹配所有的Widgets 2.类型匹配:QPushButton、QComboBox等,匹配该类的示例及其子类 3.属性匹配:通过属性来作为过滤选项,对指定的属性(可以是动态属性,例如QObject的setProperty接口),例如    QLineEdit[readOnly="true"] 对于QLineEdit只读的控件来自定义表单样式。也可以使用~=符号来对属性进行...
分类:其他好文   时间:2014-06-03 03:57:30    阅读次数:348
Python Checkio
今天偶尔从一个师兄那里看到了checkio,感觉很好玩。 我看到的第一个题是要求写一个函数,接收一个数组,然后返回其中的重复元素,而且元素的顺序不能发生变化。换句话说,就是去掉其中不含重复的元素。比如: checkio([1, 2, 3, 1, 3]) == [1, 3, 1, 3], "1st example" checkio([1, 2, 3,...
分类:编程语言   时间:2014-06-03 03:16:33    阅读次数:360
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}, r...
分类:其他好文   时间:2014-06-03 03:12:46    阅读次数:222
Qt录音机
最近做项目, 需要一个麦克风音量监听的功能: 找了好多这方面的资料, 不知道为什么 总之很少, 在此总结一下, 发贴一枚.....
分类:其他好文   时间:2014-06-03 02:24:54    阅读次数:413
Android 动态生成布局 (多层嵌套)
Android 除了可以加载xml文件,显示布局外,也可以代码生成布局,并通过setContentView(View view)方法显示布局。单独的一层布局,如一个主布局加一个控件(如Button\imageView等)动态生成代码比较简单,下面只给出示例代码: package com.example.android_dongtaishengcheng; import android.os...
分类:移动开发   时间:2014-06-03 01:45:13    阅读次数:397
LeetCode: Partition List [086]
【题目】 Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of the two partitions. For example, Given 1->4->3-...
分类:其他好文   时间:2014-06-03 00:02:29    阅读次数:270
每日算法之二十二:Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space....
分类:其他好文   时间:2014-06-01 10:41:23    阅读次数:242
SharedPreferences 使用
1,获取到SharedPreferences2,编辑SharedPreferencesSharedPreferences.Editor3,提交commit()4,获取get****package com.example.listactivity;import android.app.Activity...
分类:其他好文   时间:2014-05-31 18:18:11    阅读次数:406
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!