Letter Case Permutation
Letter Case Permutation: Given a string s, you can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible strings we…
Letter Case Permutation: Given a string s, you can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible strings we…
Find All Duplicates In Array: Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears once…
Convert 1D Array into 2D Array: You are given a 0-indexed 1-dimensional (1D) integer array original, and two integers, m and n. You are tasked with creating a 2-dimensional (2D)…
Contains Duplicate: Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct. Example 1: Input:…
Longest Consecutive Sequence: Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that runs in O(n) time. Example…
Find the Duplicate Number: Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one repeated…