Skip to content

Instantly share code, notes, and snippets.

View isturiz's full-sized avatar
👾
Learning

Mauricio Istúriz isturiz

👾
Learning
View GitHub Profile
@isturiz
isturiz / init.vim
Last active September 11, 2022 09:12
config init.vim
set number
set mouse=a
set numberwidth=1
set clipboard=unnamed
syntax enable
set showcmd
set ruler
set encoding=utf-8
set showmatch
set sw=2
@isturiz
isturiz / shortestPath.py
Last active December 15, 2022 01:35
find shortest path
from heapq import heappush, heappop
def shortestPath(graph):
# Crea un diccionario para almacenar las distancias de los nodos desde "A"
distances = {}
# Crea una cola de prioridad que almacenará las distancias y nodos visitados
queue = [(0, 'A')]
# Mientras la cola no esté vacía, seguirá buscando el camino más corto
@isturiz
isturiz / FIFO-LIFO.py
Last active December 20, 2022 09:13
Colas FIFO/LIFO
import tkinter as tk
import tkinter.font as tkFont
class Queue:
def __init__(self):
self.items = []
def is_empty(self):
return not self.items