This article concludes the Golang implementation that combines all the variations of the L#200 island problem: Features Included: Golang Implementation: Explanation: Example Output: Complexity Analysis: This Golang implementation is optimized for different…
LC#695. Max Area of Island
Leetcode 695. Max Area of Island is an extension of the island problem where we need to find the largest island in a grid of 1s (land) and 0s (water). Problem Statement…
LeetCode 347 – Top K Frequent Elements
Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. Example 1: Input: nums = [1,1,1,2,2,3], k = 2,…
Leetcode 112 – Path Sum
Problem: Leetcode 112 – Path Sum Description: Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all…
Leetcode 199 – Binary Tree Right Side View
Problem: Leetcode 199 – Binary Tree Right Side View Description: Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes…
Leetcode 17 – Letter Combinations of a Phone Number
Description: Given a string containing digits from 2 to 9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of digit to…
Setup multiple SSH Keys to different github accounts
Setting up multiple SSH keys for different GitHub accounts on the same machine is useful if you manage multiple GitHub accounts, such as a personal account and a work account. Here are…
System Design – Components&Concepts
Scalability Scalability refers to the ability of a system, network, or process to handle a growing amount of work or its potential to be enlarged in order to accommodate that growth. In…
System Design – Booking/Reservation System
Overview of the Ticket Booking System Event Data Schema Creating a data schema for a ticket selling or reservation system requires a thoughtful approach to handle events, venues, tickets, customers, and reservations….
PrefixSum Algorithm
The Prefix Sum algorithm is a technique primarily used to efficiently calculate the sum of elements in a given range (i.e., sum of elements from index i to j) in an array….