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
class HashTable(object): | |
def __init__(self): | |
self.max_length = 8 | |
self.max_load_factor = 0.75 | |
self.length = 0 | |
self.table = [None] * self.max_length | |
def __len__(self): | |
return self.length |
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
//NodeJS | |
var express = require('express'); | |
var app = express(); | |
var http = require('http').Server(app); | |
var fs = require('fs'); | |
var io = require('socket.io')(http); | |
app.use(express.static(__dirname, '/')); | |
io.on('connection', function(socket){ |