Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2014-07-07 08:19:36
阅读次数:
151
时域分析和图示 EMA.TimingDesigner.v9.2 一款灵活、交互式的时域分析和图示工具。适用于数字集成电路和印刷电路板设计。 Forte Design Systems公司的Chronology部门发布了新版本的TimingDesigner交互式时序分析和图表工具,以增强其项目管理和时序...
分类:
其他好文 时间:
2014-07-06 22:56:00
阅读次数:
364
随着3G的普及,越来越多的人使用手机上网。移动设备正超过桌面设备,成为访问互联网的最常见终端。于是,网页设计师不得不面对一个难题:如何才能在不同大小的设备上呈现同样的网页?手机的屏幕比较小,宽度通常在600像素以下;PC的屏幕宽度,一般都在1000像素以上(目前主流宽度是1366×768),有的还达...
分类:
Web程序 时间:
2014-07-06 19:52:47
阅读次数:
129
简述: UI (User Interface):用户界面 UE (User Experience):用户体验 ID (Interaction design):交互设计 UID (User Interface Design):用户界面设计 UED (User-Experience Desig...
分类:
其他好文 时间:
2014-07-06 14:18:04
阅读次数:
183
Determine whether an integer is a palindrome. Do this without extra space.
Some
hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of converting the integer to string...
分类:
其他好文 时间:
2014-07-05 10:44:29
阅读次数:
227
http://codeplanet.io/principles-good-restful-api-design/hateoashttp://en.wikipedia.org/wiki/HATEOAShttp://en.wikipedia.org/wiki/RSDLhttp://www.doc88.c...
有人说,2013将是响应式网页设计之年。自用户体验设计师Ethan Marcotte在2010年提出Responsive Web Design(RWD)的名词,即响应式网页设计,这个概念从Responsive Architecture延伸到web设计领域,让所有的交互设计、视觉、前端开发都开始投入到...
分类:
其他好文 时间:
2014-07-02 19:11:12
阅读次数:
239
UVA 10623 - Thinking Backward
题目链接
题意:给定一个数量,求用圆,椭圆,三角形分割平面,分割出该数量,输出所有情况
思路:有公式2 + 2m(m-1) + n(n-1) + 4mn + 3p(p-1) + 6mp + 6np
由于m和p都是[0,100],所以可以枚举m和p,去求出n,然后判断合不合适
代码:
#include
...
分类:
其他好文 时间:
2014-07-02 17:02:41
阅读次数:
179
设置好内部状态,然后根据不同的函数作为行为模式,进行状态转换。
有点像Finite Automata算法,两者的思想是一样的。
会Finite Automata,那么这个设计模式就很容易了。
#pragma once
#include
#include
#include
#include
enum STATES
{
FULLY_RENTED, WAITING, GOT_A...
分类:
其他好文 时间:
2014-07-02 16:50:26
阅读次数:
225
概述主要分为四个部分进行分析。First ——Usage;then ——Extension;and then ——Design;last ——Test。1. Usage1.1 Display RouteData的值MVC针对每一个请求,都会将请求转化为一个RouteData对象,添加到全局路由表中。...
分类:
Web程序 时间:
2014-07-02 14:44:29
阅读次数:
206