This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Cyril Lashkevich <notorca at gmail dot com> | |
pkgname=kchmviewer-qt | |
pkgver=6.0 | |
pkgrel=3 | |
pkgdesc="A .chm files (MS HTML help file format) viewer" | |
arch=('i686' 'x86_64') | |
url="http://kchmviewer.sourceforge.net/" | |
license=('GPL') | |
depends=('chmlib' 'qtwebkit') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 110725 2011-02-21 20:11:19Z tpowa $ | |
# Maintainer: Tobias Powalowski <tpowa@archlinux.org> | |
pkgname=qemu-mit6828 | |
pkgver=15497.04885f1 | |
pkgrel=1 | |
pkgdesc="QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation.This version is specified for MIT's operating system lesson(6.828)" | |
arch=('i686' 'x86_64') | |
license=('GPL2' 'LGPL2.1') | |
url="http://wiki.qemu.org/Index.html" | |
makedepends=('perl' 'git') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// construct the post transverse based on the preorder and inorder transverse | |
// lrj whitebook p106 | |
#include <iostream> | |
#include <cstdio> | |
#include <cstring> | |
#include <cassert> | |
using namespace std; | |
const int MAXN = 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// transverse a tree based on levels | |
// Lrj's whitebook p102 | |
#include <iostream> | |
#include <cstdio> | |
#include <cstring> | |
#include <queue> | |
using namespace std; | |
struct Node{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <cassert> | |
using namespace std; | |
const int MAXD = 20; | |
vector<bool> tree(1<<20, true); | |
int main(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <cassert> | |
using namespace std; | |
const int MAXD = 20; | |
vector<bool> tree(1<<20, true); | |
int main(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//double linked list insertion and deletion | |
//lrj whitebook p95 | |
#include <iostream> | |
using namespace std; | |
struct Node{ | |
int value; | |
Node* left; | |
Node* right; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//search the element which has the minimal abs value in an ascending array | |
#include <iostream> | |
#include <cmath> | |
#include <vector> | |
using namespace std; | |
int minabs(vector<int> &a, int start, int end){ | |
if(start+1 == end){ | |
return a[start]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Homework 4, implement game of hex | |
#include <iostream> | |
#include <vector> | |
#include <set> | |
using namespace std; | |
enum Color{ | |
RED, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define MAX_SIZE 128 | |
struct fifo{ | |
int size; | |
int head; | |
int count; | |
char element[MAX_SIZE]; | |
}; |