Skip to content

Instantly share code, notes, and snippets.

View Shoray2002's full-sized avatar
🚬
Smoke Code Everyday

Shoray Singhal Shoray2002

🚬
Smoke Code Everyday
View GitHub Profile
import sys
from PIL import Image
def compare_pixels(png1, png2):
pixels1 = list(png1.getdata())
pixels2 = list(png2.getdata())
if len(pixels1) != len(pixels2):
return -1 # different pixel count
match = 0
@dongwooklee96
dongwooklee96 / main.py
Created August 24, 2021 07:26
정렬
from random import randint
def bubble_sort(arr):
n = len(arr)
for i in range(n):
done_sort = True
for j in range(n - i - 1):
if arr[j] > arr[j + 1]: