Skip to content

Instantly share code, notes, and snippets.

View florenceshelley's full-sized avatar
🐰

Florence Shelley florenceshelley

🐰
View GitHub Profile
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>
const hashmap = (n) => {
const self = this;
self.list = [[]];
self.has = (e) => {
if (self.list.length >= index + 1) {
return self.list[index].indexOf(e) >= 0;
} else {
return false;
}
};