Team: [Team Name] Role: [Role Name] Phase: [#]
This file contains hidden or 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
| /** List abstract class. */ | |
| template <typename ItemType> class List { | |
| public: | |
| virtual int size() const = 0; | |
| virtual ItemType &get(int i) = 0; | |
| virtual const ItemType &get(int i) const = 0; | |
| virtual void insert(const ItemType &x, int i) = 0; | |
| virtual ItemType remove(int i) = 0; | |
| virtual void addFirst(const ItemType &x) = 0; | |
| virtual void addLast(const ItemType &x) = 0; |
This file contains hidden or 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
| template <typename T> class ArraySet { | |
| private: | |
| T *items; | |
| int count; | |
| public: | |
| /** Create an empty set. */ | |
| ArraySet() { | |
| items = new T[100]; | |
| count = 0; |
This file contains hidden or 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> | |
| class IntNode { | |
| public: | |
| int item; | |
| IntNode *next; | |
| IntNode(int i, IntNode *n) { | |
| item = i; | |
| next = n; |
This file contains hidden or 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> | |
| class IntList { | |
| public: | |
| int first; | |
| IntList *rest; | |
| IntList(int f, IntList *r = nullptr) { | |
| first = f; | |
| rest = r; |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get dist-upgrade | |
| sudo rpi-update | |
| sudo apt-get install dnsmasq hostapd | |
| sudo systemctl stop dnsmasq | |
| sudo systemctl stop hostapd | |
| # /etc/dhcpcd.conf | |
| interface wlan0 | |
| static ip_address=192.168.4.1/24 |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import argparse | |
| from os import chdir, getcwd, listdir | |
| from os.path import realpath | |
| from shutil import move | |
| class PushdContext: | |
| cwd = None | |
| original_dir = None |
This file contains hidden or 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
| import java.net.*; | |
| import java.io.*; | |
| /** | |
| * A very simple web server. | |
| * @author zhhailon | |
| */ | |
| public class MiniWebServer { | |
| protected void start() { |
This file contains hidden or 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
| /* | |
| 2 Given a binary tree, print out all of its root-to-leaf | |
| 3 paths, one per line. Uses a recursive helper to do the work. | |
| 4 */ | |
| void printPaths(struct node* node) { | |
| int path[1000]; | |
| printPathsRecur(node, path, 0); | |
| } | |
| /* |
NewerOlder