You are given an array (which will have a length of at least 3, but
could be very large) containing integers. The array is either entirely
comprised of odd integers or entirely comprised of even integers except
for a single integer N. Write a method that takes the array as an
argument and returns this "outlier" N.
You are given an array (which will have a length of at least 3, but
could be very large) containing integers. The array is either entirely
comprised of odd integers or entirely comprised of even integers except
for a single integer N. Write a method that takes the array as an
argument and returns this "outlier" N.
https://www.codewars.com/kata/54b42f9314d9229fd6000d9c/solutions/typescript
The goal of this exercise is to convert a string to a new string where
each character in the new string is "(" if that character appears only
once in the original string, or ")" if that character appears more than
once in the original string. Ignore capitalization when determining if a
character is a duplicate.
https://www.codewars.com/kata/563b662a59afc2b5120000c6
n a small town the population is p0 = 1000 at the beginning of a year.
The population regularly increases by 2 percent per year and moreover 50
new inhabitants per year come to live in the town. How many years does
the town need to see its population greater than or equal to p = 1200
inhabitants?
https://www.codewars.com/kata/55f9b48403f6b87a7c0000bd
Your classmates asked you to copy some paperwork for them. You know that
there are 'n' classmates and the paperwork has 'm' pages.Your task is to
calculate how many blank pages do you need. If n < 0 or m < 0 return 0.
https://www.codewars.com/kata/576b93db1129fcf2200001e6
Sum all the numbers of a given array ( cq. list ), except the highest
and the lowest element ( by value, not by index! ).The highest or lowest
element respectively is a single element at each edge, even if there are
more than one with the same value.Mind the input validation.
https://www.codewars.com/kata/576757b1df89ecf5bd00073b
Build a pyramid-shaped tower, as an array/list of strings, given a
positive integer number of floors. A tower block is represented with "*"
character.For example, a tower with 3 floors looks like this: