码迷,mamicode.com
首页 >  
搜索关键字:search box    ( 20571个结果
Leetcode:Convert Sorted List to Binary Search Tree
Description :Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.分析:这道题目简单版是把一个排序好的数组转成平衡的二叉树...
分类:其他好文   时间:2014-06-16 10:51:54    阅读次数:237
android四大组件
Activity:在Android的程序当中,Activity 一般代表手机屏幕的一屏。如果把手机比作一个浏览器,那么Acitivity就相当于一个网页。在Activity 当中可以添加一些Button、Check box 等控件。可以监听控件并处理用户的事件做出响应。一般一个Android 应用是...
分类:移动开发   时间:2014-06-16 09:49:19    阅读次数:240
Compass css3
@include box-shadow(rgba(88,88,88,0.4) 0 0 20px 5px);最后不用的参数就可以不写,rgba可以设透明度alpha,所以在photoshop里面算好rbg值来写也挺好的。上面示例的0 0 是纵向以及横向偏移值。20px是位移,5px是扩散。最后省略了一...
分类:Web程序   时间:2014-06-16 09:12:16    阅读次数:262
[leetcode]Search in Rotated Sorted Array II @ Python
原题地址:https://oj.leetcode.com/problems/search-in-rotated-sorted-array-ii/题意:Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed...
分类:编程语言   时间:2014-06-16 08:20:54    阅读次数:307
Leetcode | Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.递归,二分法。 1 /** 2 * Definition for binary tree 3 * st.....
分类:其他好文   时间:2014-06-16 00:33:31    阅读次数:252
LeetCode Search for Range
class Solution {private: int getDirection(int A[], int idx, int target, bool isDefaultBack) { int r = A[idx] - target; if (r == 0) { ...
分类:其他好文   时间:2014-06-13 17:37:20    阅读次数:221
二叉搜索树实现MAP
二叉搜索树的基本实现。 1 /* 2 Date: 2014-04-29 3 purpose: An implementation of MAP using binary search tree. 4 */ 5 6 #ifndef CUSTOMIZED_MAP_H 7 #define CUST...
分类:其他好文   时间:2014-06-12 15:59:38    阅读次数:404
MyEclipse使用总结——MyEclipse文件查找技巧
原文:MyEclipse使用总结——MyEclipse文件查找技巧一、查找文件 使用快捷键【ctrl+shift+R】弹出弹出文件查找框,如下图所示: 二、查找包含某个字符串的文件 使用快捷键【ctrl+H】在弹出对话框中选File Search选项,然后在第一个文本框中粘贴(我一般用粘贴)或自已手...
分类:系统相关   时间:2014-06-12 14:29:28    阅读次数:269
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!