programmers

A collection of 2 post

Target Number

Problem There are n non-negative integers. We want to add or subtract these numbers appropriately to make our target number. For example, to make the number 3 from 1, 1, 1, 1, 1, you can use the following five methods: Write the solution function to return the number of ways to make the target…

Math Haters

Problem Math-hater is short for a person who has given up on mathematics. Three math-haters are trying to take all math problems for the practice test. Math-haters are taken from question 1 to the last question as follows. Haters Answers Math-hater 1  1, 2, 3, 4, 5, 1, 2, 3, 4, 5, … Math-hater 2…