Reverse Only LettersGiven a string s, reverse the string according to the following rules:Oct 25, 2022Oct 25, 2022
LeetCode — Number of Good Ways to Split a StringYou are given a string s, a split is called good if you can split s into 2 non-empty strings p and q where its concatenation is equal to s…Dec 1, 20211Dec 1, 20211
Permutations IIGiven a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order.Nov 26, 2021Nov 26, 2021
PermutationsGiven an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.Nov 24, 2021Nov 24, 2021
Partition Equal Subset Sum.Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subsets such that the sum of…Nov 23, 2021Nov 23, 2021
Coin Change ProblemYou are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of…Nov 19, 2021Nov 19, 2021
Strange-advertising — HackerRank ProblemHackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly people on…Nov 4, 2021Nov 4, 2021
Maximum SwapYou are given an integer num. You can swap two digits at most once to get the maximum valued number.Return the maximum valued number you…Jul 26, 20211Jul 26, 20211
Find the minimum number of swaps to sort unsorted array.You are given an unordered array consisting of consecutive integers [1, 2, 3, …, n] without any duplicates. You are allowed to swap any…Jul 24, 2021Jul 24, 2021
Reverse Vowel of a String.Given a string s, reverse only all the vowels in the string and return it.Jul 22, 2021Jul 22, 2021