Category: math
Given an integer n greater than 1, find all of its prime factors and return them in sorted order. You can write out a number as a product of …
Given a single linked list node, representing a binary number with most significant digits first, return it as an integer. Example 1 Input node = 1 → 0 → …
Given strings s0, s1 and a positive integer n, return the nth term of the sequence A where: A = s0 A = s1 A = A + A …
Given a two-dimensional integer matrix, return the total number of integers whose value is the largest in its row and in its column. For example, given 1 3 2 …
Given a list of integers nums, put all the zeros to the back of the list by modifying the list in-place. The relative ordering of other elements should stay …