Skip to content

Instantly share code, notes, and snippets.

View geosteffanov's full-sized avatar
🌴
Working

Georgi Stefanov geosteffanov

🌴
Working
View GitHub Profile
#!/usr/bin/env python3
from town import TrafficLight
import numpy as np
class City:
# TODO: input distibution
# lights ids start from 0 for the streets
def __init__(self, lights_count, streets, checkpoints=3, capacity=10, lights=None, dist=(2, 1)):
self.lights = lights if lights else [TrafficLight() for _ in range(lights_count)]
print("Hello world")
#include <iostream>
class LinkedList
{
private:
struct Node
{
int data;
Node *next;