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 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)] |
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
print("Hello world") |
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 <iostream> | |
class LinkedList | |
{ | |
private: | |
struct Node | |
{ | |
int data; | |
Node *next; |