现在位置: 首页 > edifier发表的所有文章
  • 07月
  • 24日
综合 ⁄ 共 1618字 评论关闭
Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree and sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ \ 7 2 1 return true, as there exist a root-to-leaf path 5->4->11->2 which sum is 22. Path Sum II Given a binary tree and a sum, find all r......
阅读全文
  • 03月
  • 14日
综合 ⁄ 共 320字 评论关闭
刚才打开ubuntu,我的版本是11.04.正想打开新立得软件工具包更新软件的时候,出现了如下错误: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages …………………… 在网上搜到了解决办法,现在记录下来,以便今后查阅: 终端中输入以下两条命令: sudo rm /var/lib/apt/lists/* -vf sudo apt-get update 执行完了命令之后,软件更新器应该会自动要求更新的,更新便是。
阅读全文
  • 01月
  • 15日
综合 ⁄ 共 4144字 评论关闭
有了额外的自动包装机制和泛型,在容器中持有基本类型就变得易如反掌了,而这也进一步促使你用容器来替换数组。因为泛型可以产生类型安全的容器,因此数组面对这一变化,已经变得毫无优势,泛型对数组是极大的威胁。 当你使用Java编程时,应该优先选择容器而不是数组,只有在证明性能成为问题(并且切换到数组对性能提高有所帮助)时,你才应该将程序重构为使用数组。 一、数组的特点   1、数组是一个有界的线性序列,大小被固定、随机访问速度非常快(超过集合); 2、数组可以存储基本类型,也可以存储引用类型; 3、数......
阅读全文
  • 06月
  • 08日
综合 ⁄ 共 762字 评论关闭
 1、yum 基本知道介绍       Yum (Yellow dog Updater, Modified) 是一个在Fedora 中的字符前端软件包管理器。基于RPM 包管理,能够从指定的服务器自动下载 RPM 包并且安装,可以处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装  2、配置所需要的资源        1、 一台安装好的  redhat  机器、        2、一张redhat 系统盘或都一个 iso 文件 3、加载文件系统文件         1、在实体机器上插入 redhat 系统盘 。        2、 虚拟机中需要设置 iso 文件所在地。  4、修改x.repo的配置文件         ......
阅读全文
  • 05月
  • 23日
综合 ⁄ 共 152字 评论关闭
  bgproperties属性只有一个值fixed。它把背景图像冻结在浏览器窗口中,选样它就不会随着其他窗口内容而滚动了。      因此,示例H20mark.gif背景图像可以用作文档的水印:      <body background="pics/H20mark.gif" bgproperties="fixed">
阅读全文
  • 05月
  • 12日
综合 ⁄ 共 68700字 评论关闭
This document aids in troubleshooting problems relating to iOS code signing, or issues encountered while performing any of the common tasks involving code signing. This guide is intended to supplement the Tools Workflow Guide for iOS, so start there first if you are new to iOS development. Code Signing in a nutshell Code Signing is the process by which your compiled iOS application is sealed and identified as yours. The following sections describe the two major players in code signing:......
阅读全文
  • 04月
  • 21日
综合 ⁄ 共 761字 评论关闭
离散化+ 逆序数 用树状数组。 知道怎么求逆序数和离散化就是个模板题 #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #include <queue> #include <cmath> #include <stack> #include <vector> #include <set> #include <map> #include <list> #include <string> using namespace std; typedef __int64 ll; int const MAXN = 500010; int c[MAXN * 2]; int n; struct Num{ int val,pos; }num[MAXN]; int LowBit(int......
阅读全文
  • 04月
  • 11日
综合 ⁄ 共 1028字 评论关闭
找了一本书,又研究了一些GMSK中的MSK,也就是最小频移键控的原理,经过一同复杂的计算,终于把计算的方法弄明白了八九不离十.不过算得明白了不一定能够形象的理解问题.我绞尽脑汁,使用了一个简单的举例的方法,终于理解了MSK的最终的道理.下面我把经验给大家传授一下,大家看了应该会顿开茅塞的.     我们假设有这样的一组参数.         码元速率:Fm=40HZ/S         载频速率:Fc=121HZ/S     当然我举的例子不可能是实际情况,因为无论是载频还是码元传输的速度都不会这样低,取这样的数值只是为了便于大家理解.     那么,码元速率Fm=40HZ......
阅读全文
  • 04月
  • 10日
综合 ⁄ 共 591字 评论关闭
开始配置情况: 如图, 我用的defaults这个项去添加的tomcat。当然咯,添加完成之后,这里也就没有tomcat这个标签可以选。看来是某个地方弄错了。   然后才知道,需要用这个+这个标签Add new configuration在这里面添加Server。添加完成之后,就如我画红线的这个样子。   然后点击configure,进行配置。   给我默认的5.x我也没在乎,毕竟就一个名而已,一起都按默认来走,而且还默认知道我的tomcat在那个目录,神奇了啊Idea,所以我也没管。   配置完成后,部署好jar,点击启动,结果就不行了。就报这样一个提示,网上查了下......
阅读全文
  • 01月
  • 23日
综合 ⁄ 共 141字 评论关闭
从用户体验出发: 1.程序logging不要太长 2.相同数据不要重复获取 3.资源要重用.比如cell 4.良好的编程习惯和程序设计:选择正确的集合对象和算法来进行编程,选择适合的数据存储格式(plist,SQLite),优化SQLite查询语句 5.数据资源方面的优化(缓存和异步加载)等
阅读全文
  • 12月
  • 22日
综合 ⁄ 共 921字 评论关闭
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1. 1.解题思路: 首先,二叉平衡树是对于每一个节点来说,其左子树和右字数的高度相差不超过1.则,我们需要定义方法isBanlanced中分别得到左子树和右子树的高度。 如果差小于1,则调用自己,进行该节点左节点和该节点右节点的高度差的判断。如果当前节点为空, 返回true; 其次,在以上过程中,需......
阅读全文
  • 12月
  • 05日
综合 ⁄ 共 10463字 评论关闭
android.permission.ACCESS_CHECKIN_PROPERTIES Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded 允许读写访问 "properties"表在checkin数据库中,改值可以修改上传 android.permission.ACCESS_COARSE_LOCATION Allows an application to access coarse (e.g., Cell-ID, WiFi) location 允许一个程序访问CellID或WiFi热点来获取粗略的位置 android.permission.ACCESS_FINE_LOCATION Allows an application to access fine (e.g., GPS) loca......
阅读全文