Hello, Here's my solution for the flood fill problem, found on LeetCode. If you want me to write about certain topics please let me know in the comments, thank you! Link to the problem: https://leetcode.com/problems/flood-fill/ """ An image is represented by a 2-D array of integers, each integer representing the pixel value of the image … Continue reading LeetCode: Flood Fill

# leetcode

# LeetCode: Find The Town Judge

Hello In this article I will present you my Python3 solution for the following problem which I found on LeetCode: find-the-town-judge. Note: The solution is on the second page, so you won't get spoiled if you want to attempt to solve the problem by yourself. Have fun! from collections import defaultdict from typing import List … Continue reading LeetCode: Find The Town Judge

# LeetCode: Arrays 101: Inserting Items Into an Array

Hello, Here are my solutions for the second part of the card: Arrays 101, from LeetCode. Duplicate Zeroes Given an array of integers, remove duplicate zeroes and shift the remaining elements. https://leetcode.com/problems/duplicate-zeros/ class Solution: def duplicateZeros(self, arr: List[int]) -> None: """ Do not return anything, modify arr in-place instead. """ index = 0 arr_length = … Continue reading LeetCode: Arrays 101: Inserting Items Into an Array

# LeetCode: Arrays 101: Introduction – Solutions

Hello, LeetCode is a good place to practice programming by solving problems of all levels! After you solve a problem, you'll get access to all submitted solutions, sorted by time and memory usage. That's a nice way to compare your code to others and see what you did well and where you can improve. Here's … Continue reading LeetCode: Arrays 101: Introduction – Solutions