Tag: c++
You are given integers n, e, o, t. You have n dollars in principal that you invested in the stock market. Given the stock market alternates between first returning …
Given a list of integers nums and an integer k, let’s create a new set of possible elements { nums, nums], nums]], … } stopping before it’s out of …
Given a lowercase alphabet string s, partition s into as many pieces as possible such that each letter appears in at most one piece and return the sizes of …
Given an integer n, return whether its prime factors only include 2, 3 or 5. Constraints n ≤ 2**31 -1 Example 1 Input n = 10 Output true Explanation …
December 9, 2020
algorithms, BASH, bash script, c / c++, c #, C/C++, C# (CSharp), Java, java, javascript, Node.Js, php, PHP, programming languages, python, Python, Rust, string, vbscript, VBScript
You are given a lowercase alphabet string text. Return a new string where every character in text is mapped to its reverse in the alphabet, so that a becomes …