A gardener has 1000 plants.He wants to plants to plant these in such a way that the number of rows and the number of columns remain same. Find the minimum number of plants he needs more for this.
If the number of rows and number of columns are to be equal, then the total number of trees will be in the form of x2, which is nothing but a perfect square.
As 1000 is not a perfect square, you need to check for a perfect square above and nearest to 1000.
It's 1024, which is square of 32. So he needs to add 24 more trees to get 1024.