How many coins are needed get a triangle with six coins in the
base?
Answers
Answered by
4
We have N coins which need to arrange in form of a triangle, i.e. first row will have 1 coin, second row will have 2 coins and so on, we need to tell maximum height which we can achieve by using these N coins.
Examples:
Input : N = 7
Output : 3
Maximum height will be 3, putting 1, 2 and
then 3 coins. It is not possible to use 1
coin left.
Input : N = 12
Output : 4
Maximum height will be 4, putting 1, 2, 3 and
4 coins, it is not possible to make height as 5,
because that will require 15 coins.
Answered by
0
Answer:
how many coins are needed to get a triangle with six coins in the nase ?
Similar questions
CBSE BOARD XII,
17 days ago
Math,
17 days ago
Social Sciences,
17 days ago
Accountancy,
1 month ago
Math,
1 month ago
Biology,
8 months ago
Chemistry,
8 months ago