Carlos Ganoza

blog about software engineering, computer science and other boring things.

Estructura de datos en python

Hola queridos lectores, aquí les traigo algunas clases que se utilizan el el curso de Estructura de Datos, pero hechas en python. sin mucho preambulo aqui les dejo el codigo: cola.py1234567891011121314151617181920class Cola: def __init__(self): self.cola = [] def vacia(self): if self.cola==[]: print "true" else: print "false" def primero(self): return......

Data Structures in Python

Hi Dear readers, here I bring to you, some implementations of the data structure’s course, but with python.In my University it’s used java for this course, but I wanted to use pythonbecause right now is my prefeer language. So, lets go! queue.py1234567891011121314151617181920class Queue: def __init__(self): self.queue = [] def is_empty(self): if self.queue==[]: return Tr......