Category: math
Given a two-dimensional integer list intervals of the form representing intervals (inclusive), return their intersection, that is, the interval that lies within all of the given intervals. You can …
Given a string s representing a number in base 3 (consisting only of 0, 1, or 2), return its decimal integer equivalent. Example 1 Input s = “10” Output …
You are given two lists of integers weights and values which have the same length and an integer capacity. weights and values represent the weight and value of the …
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 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 …