#algorithms
Read more stories on Hashnode
Articles with this tag
Given two strings s and t, return true if t is an anagram of s, and false otherwise. An Anagram is a word or phrase formed by rearranging the letters...
A useful tool: sentinel node · Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == val, and...
Given a positive integer n, generate an n x n matrix filled with elements from 1 to n^2 in spiral order. Example 1: Input: n = 3 Output:...
Unveiling Efficiency: The Sliding Window Method · Given an array of positive integers nums and a positive integer target, return the minimal length of a...
Two Pointers Technique · The Problem: Remove Element Given an integer array nums and an integer val, remove all occurrences of val in numsin-place. The...
The devil is in the details · Introduction When diving into binary search methods on LeetCode, the initial encounter with three templates might leave you...