There are four types of interrupts on the CPU.
? Reset
? Maskable
? Nonmaskable
? Exception(异常也可视为中断)
These first three types are differentiated by their
priorities. The
reset interrupt has t...
分类:
其他好文 时间:
2014-05-22 13:14:59
阅读次数:
245
#import "CHViewController.h"
@interface CHViewController ()
@end
@implementation CHViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view,...
分类:
其他好文 时间:
2014-05-22 12:38:44
阅读次数:
369
??
A Stack or A Queue?
Time Limit:
1 Second Memory Limit: 32768 KB
Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data ...
分类:
其他好文 时间:
2014-05-22 12:24:38
阅读次数:
236
【题目】
原文:
2.1 Write code to remove duplicates from an unsorted linked list.
FOLLOW UP
How would you solve this problem if a temporary buffer is not allowed?
译文:
从一个未排序的链表中移除重复的项
...
分类:
其他好文 时间:
2014-05-22 12:04:13
阅读次数:
196
知识点:
最小公倍数(a,b)=a*b/最大公约数(a,b)
Party
Description
The CEO of ACM (Association of Cryptographic Mavericks) organization has...
分类:
其他好文 时间:
2014-05-22 11:41:33
阅读次数:
354
用信号量解决生产者消费者问题:
ipc.h
#ifndef _IPC_H_
#define _IPC_H_
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define ERR_EXIT(m) do \...
分类:
其他好文 时间:
2014-05-22 07:20:09
阅读次数:
366
问题
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorde...
分类:
其他好文 时间:
2014-05-22 07:04:46
阅读次数:
298
mysql 自定义存储过程和触发器
--存储过程示范
DROP PROCEDURE IF EXISTS PRO_TEST;
CREATE PROCEDURE PRO_TEST(IN NUM_IN INT,OUT NUM_OUT INT,INOUT NUM_INOUT)
BEGIN
//DO ANYTHING YOU WANT
END;
参数解释:
in : 就是输入参数,输...
分类:
数据库 时间:
2014-05-22 06:42:40
阅读次数:
345
【题目】
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring is "()", which has length = 2.
Another example is ")()())", whe...
分类:
其他好文 时间:
2014-05-20 16:39:07
阅读次数:
280
Problem Description
As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B.
To make the problem easie...
分类:
其他好文 时间:
2014-05-20 14:42:07
阅读次数:
324