Tag: C++ coding exercise
Given an encoded string, return it’s decoded string. The encoding rule is: k, where the encoded_string inside the square brackets is being repeated exactly k times. Note that k …
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target. The same …
Given an array nums and a target value k, find the maximum length of a Contiguous subarray that sums to k. If there isn’t one, return 0 instead. The …
Given an input string , reverse the string word by word. Example: Input: Output: A word is defined as a sequence of non-space characters. The input string does not …
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make …