目前,Linux在国内受到了越来越多的业内人士和用户的青睐。相信在不久的将来,在国内为Linux开发的应用软件将会有很大的增加(这不,金山正在招兵买马移植WPS呢)。由于未来将会是Windows和Linux两强鼎立的格局,怎样能够使得开发的软件保持最大的可移植性就成了一个很重要的问题。小弟经过一段时...
转载自:http://blog.csdn.net/sailor_8318/article/details/30543831~n无序数组时间复杂度为O(n)排序有1,2,....一直到n的无序数组,求排序算法,并且要求时间复杂度为O(n),空间复杂度O(1),使用交换,而且一次只能交换两个数.(华为)...
分类:
编程语言 时间:
2014-06-26 18:20:53
阅读次数:
143
B/S结构(Browser/Server,浏览器/服务器模式),是WEB兴起后的一种网络结构模式,WEB浏览器是客户端最主要的应用软件。这种模式统一了客户端,将系统功能实现的核心部分集中到服务器上,简化了系统的开发、维护和使用。客户机上只要安装一个浏览器(Browser),如Netscape Nav...
分类:
Web程序 时间:
2014-06-26 16:41:16
阅读次数:
284
存储一致性模型研究——Research of Memory Consistency Model
一致性模型:
所谓存储一致性模型(Memory
Consistency Model),实际上是系统设计者与应用程序员之间的一种约定。如果应用软件遵从一定的规则访问虚内存系统,则应用软件可获得正确的存储访问结果;反之,若破坏约定的规则,则存储访问的正确性不受保证。
从某种意义上来...
分类:
其他好文 时间:
2014-06-26 14:07:13
阅读次数:
300
【题目】
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following requirements:
Each child must have at least one candy.
Children with a higher rating get more candie...
分类:
其他好文 时间:
2014-06-26 13:37:26
阅读次数:
265
【题目】
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an ...
分类:
其他好文 时间:
2014-06-26 13:27:05
阅读次数:
231
【题目】
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
【题意】
给定一个整数数组,其中除了一个数以外,其他数都是成对出现的,...
分类:
其他好文 时间:
2014-06-26 10:13:27
阅读次数:
254
本来只是打算介绍一下addChildViewController这个方法的,正好今天朋友去换工作面试问到网易新闻标签栏效果的实现,就结合它,用个小Demo实例介绍一下:(具体解释都写在了Demo里面的注释)
//
// HMTMainViewController.m
// UIScrollView
//
// Created by HMT on 14-6-25.
// Copyright...
分类:
移动开发 时间:
2014-06-26 08:10:05
阅读次数:
294
【题目】
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given s = "aab",
Return 1 since the palindrome partitioning ["aa","b"] could b...
分类:
其他好文 时间:
2014-06-26 07:48:00
阅读次数:
259
【题目】
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separator for each node, and , as a separator for node label and each ne...
分类:
其他好文 时间:
2014-06-26 06:48:16
阅读次数:
285