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 | |
from rotate_testcases import *#kludge | |
def rotate_matrix_90_deg_right(matrix): | |
outer_list = [] | |
matrix = list(reversed(matrix)) | |
matrix_len = len(matrix) | |
max_row_len = max([len(row) for row in matrix])#should be same len |
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 | |
""" | |
see also: | |
https://gist.github.com/danquixote/64d12eebef39c50f4adf2204d6dbf2ef | |
""" | |
MATRIX = [ | |
[1,2,3], | |
[4,5,6], | |
[7,8,9], |
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 logging | |
import random | |
import requests | |
import sys | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
SERVERS = [ | |
'127.0.0.1:8081', |