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 "grader.h" | |
| #include "encoder.h" | |
| #include "decoder.h" | |
| #include <algorithm> | |
| #include <vector> | |
| #include <iostream> | |
| // No communication/shared data between two namespaces please. | |
| namespace Encoder | |
| { |
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 python3 | |
| import sys | |
| import glob | |
| import os | |
| import struct | |
| import codecs | |
| from PIL import Image, ImageTk | |
| from itertools import product |
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
| // [first, from) and [to, last) are non-overlapping ranges | |
| template<class Iter> | |
| void reverse_gapped(Iter first, Iter from, Iter to, Iter last) { | |
| if (from == to) { | |
| std::reverse(first, last); | |
| return; | |
| } | |
| if (first == from) { | |
| std::reverse(to, last); | |
| return; |
OlderNewer