- 博客(17)
- 资源 (6)
- 收藏
- 关注
原创 eclipse安装Genymotion插件
Genymotion安装后可以独立运行android模拟器,作为android开发者来说为了开发方便安装一个插件,就是把Genymotion集成到eclipse里面,通过eclipse就可以启动Genymotion模拟器。但是中途遇到一点小问题,记录一下...1、打开eclipse,在help菜单里选择install new software,就打开了一个可以安装插件的页面。2、选择“ad...
2016-05-27 23:22:34 308
原创 查找算法总结
查找算法总结查找经常进行的操作:(1)查找key是都存在于当前集合;(2)在查找集合中插入key;(3)在查找集合中删除key;静态查找:在查询集合中,查找key是否存在。动态查找:在查找过程中同时插入集合中不存在的元素;或者删除查找元素。查找算法分类:(1)静态查找算法:顺序查找,二分查找(折半查找),索引查找(分块查找);(2)动态查找算法:二叉排序树;
2016-05-16 21:02:11 429
原创 Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.题目:查找字符串中最长回文子
2016-05-09 21:36:43 653
原创 Java错误No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
最近在编写例子的时候,自己添加了一个内部类。结果编译时遇到一个小问题:No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instance of type E(e.g. x.new A() where x is an instance of E). 错误提
2016-05-15 16:53:28 624
原创 C#遍历DataSet中数据的方法总结
DataSet存在四种情况:(1)多表多行多列 //遍历所有的datatable foreach(DataTable dt in dataset.Tables) { Console.WriteLine(dt.TableName);//表名 //遍历所有的行
2016-05-15 16:25:55 592
原创 C#控制RichTextBox滚动条的方法
网上好多都是用richTextBox的ScrollToCaret属性来做,即将控件的内容滚动到当前插入符号位置。此有弊端,有时候显示会造成,有半行数据时,滚动条未滚动最底。正确的方法:控制当前选择区域SelectionStart属性和SelectionLength属性.例如:控制滚动条始终保持在当前追加内容的在下方:richTextBox.SelectionStart = richTe
2016-05-15 16:18:00 5608
原创 Counting Bits
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.Example:For num = 5
2016-05-13 17:04:07 201
原创 Java 移位运算(<<、>>、>>>)
位移运算Java位移运算主要有三种:(1)左移:vluse规则:1)丢弃最高位,低位补0;2)如果移动位数超过了该类型的最大位数,那么编译器会对移动的位数取模操作;3)在没有溢出的情况下,对于正数和负数都相当于乘2操作;4)如果移近高级位(32/64),那么该值将变为负数;(2)右移:>>vluse规则:1)丢弃低位,高位补符号位;(负数补1
2016-05-13 16:32:44 2072
原创 Subsets(Array/ Bit Manipulation )
Given a set of distinct integers, nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.For
2016-05-12 17:40:35 237
原创 Integer to English Words
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1.For example,123 -> "One Hundred Twenty Three"12345 -> "Twelve Thousand Th
2016-05-12 14:40:09 219
原创 Longest Substring Without Repeating Characters(LeetCode)
Longest Substring Without Repeating Characters(LeetCode)
2016-05-09 17:06:22 191
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人