Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. Solution C# Python3
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display…
Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++’s atoi function). The algorithm for myAtoi(string s) is as…
A permutation of an array of integers is an arrangement of its members into a sequence or linear order. For example, for arr…
Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is formed from the original string…
Given an integer array nums, move all 0‘s to the end of it while maintaining the relative order of the non-zero elements.…
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Solution C# Python3
Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the…
Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any…
Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Solution C# Python3