#leetcode
Read more stories on Hashnode
Articles with this tag
The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer n, return...
Implement pow(x, n), which calculates x raised to the power n (i.e., xn). Example 1: Input: x = 2.00000, n = 10 Output: 1024.00000 Example 2: Input:...
Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by...
You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means...
Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order*.* Example 1: Input: nums =...
Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example 1: Input: nums =...