Sort by absolute value
Given a list of numbers, arrange them in ascending order based on their absolute values.
For example, for the list [-30, -5, 1...
Bit to Gigabyte
1 bit =
1.25 × 10^-10 gigabytes | x is bit | y is gigabyte
2 years ago
Solved
Reverse Integer
You are given an integer, reverse its digits. For negative integers, the sign should remain in the front.
For instance, 12340 s...
2 years ago
Solved
Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.
2 years ago
Solved
Compound Interest : Future Value
Theorem : Compound Interest
where,
F : Future value at the end of n periods
P : Present value
r : Annual nominal rate
n :...
Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...