Vivek SinghReverse Only LettersGiven a string s, reverse the string according to the following rules:1 min read·Oct 25, 2022----
Vivek SinghLeetCode — 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…2 min read·Dec 1, 2021--1--1
Vivek SinghPermutations IIGiven a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order.1 min read·Nov 26, 2021----
Vivek SinghPermutationsGiven an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.1 min read·Nov 24, 2021----
Vivek SinghPartition 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…2 min read·Nov 23, 2021----
Vivek SinghCoin Change ProblemYou are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of…2 min read·Nov 19, 2021----
Vivek SinghStrange-advertising — HackerRank ProblemHackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly people on…1 min read·Nov 4, 2021----
Vivek SinghMaximum 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…2 min read·Jul 26, 2021--1--1
Vivek SinghFind 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…2 min read·Jul 24, 2021----
Vivek SinghReverse Vowel of a String.Given a string s, reverse only all the vowels in the string and return it.2 min read·Jul 22, 2021----