I use open source to help people evolve, I take pleasure in seeing people evolve

Open Source Contributions - August 2010


August 2010 marked a significant period in project development with zero contributions, highlighting a month of reflection and strategic planning.
Read more ⟶

TDA Fila com Python


O foco este post é levar você aprender computação com Python. O TDA Fila é definido pelas seguintes operações:

__init__: Inicializar uma nova fila vazia insert: Adicionar um novo item à fila remove: Remover e retornar um item da fila. O item retornado é o que foi adicionado primeiro. isEmpty: Checar se a fila está vazia

Segue abaixo um código para explica melhor a implementação "TAD Fila".

class Queue:
	def __init__(self):
		self.length = 0
		self.head = None

	def isEmpty(self):
		return (self.length == 0)

	def insert(self, cargo):
		node = Node(cargo)
		node.next = None
		if self.head == None:
			# if list is empty the new node goes first
			self.head = node
		else:
			# find the last node in the list
			last = self.head
			while last.next: last = last.next
			# append the new node
			last.next = node
			self.length = self.length + 1

	def remove(self):
		cargo = self.head.cargo
		self.head = self.head.next
		self.length = self.length - 1
		return cargo

Existem duas invariantes para um objeto Fila bem formado: o atributo length deve ser o número de nós na fila.

Read more ⟶

Open Source Contributions - July 2010


In July 2010, a significant issue was opened in the klederson/phpburn repository, highlighting documentation needs for the joinInner function.
Read more ⟶

Open Source Contributions - June 2010


June 2010 highlights a significant contribution with a push event to the 'avelino/iug' repository, showcasing active development efforts and community engagement.
Read more ⟶