There are some spherical balloons taped onto a flat wall that represents the XY-plane. The balloons are represented as a 2D integer array points&…
My memo and playground
There are some spherical balloons taped onto a flat wall that represents the XY-plane. The balloons are represented as a 2D integer array points&…
You are given an array of non-overlapping intervals intervals where intervals[i] = [starti, endi] represent the start and the end …
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the …
Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that r…
Given an integer array nums and an integer k, return true if there are two distinct indices i and j …
Write an algorithm to determine if a number n is happy. A happy number is a number defined by the following process: Return t…
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You…
Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a wor…
Given two strings s and t, return true if t is an anagram of s, and false otherwise. An Anagram…
Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there…