You are supposed to write production ready code with Proper Unit Test Cases, Modularization etc. You need to write your test cases under user package in test folder. One sample test is created under same package for reference. Your code will be evaluated on the basis of code
coverage, Code Quality, Best Practices and Bugs.
NOTE: Here, we use JAVA 8 and GRADLE VERSION 4..
PROBLEM: Number of squares in a chessboard, Given an n xn grid, count squares in it.
CONSTRAINTS:
14 15
, n denotes the number of rows and columns of the chessboard.
16
17
FUNCTION DESCRIPTION:
18
Complete the function int getto04Squares (Ant n). It should return number of possible squares (int). where is square of a dimension You have to return to of posible perfect squares.
Watch video Mahindra Hiring Drive Coding Solutions Java Python C++ online without registration, duration hours minute second in high quality. This video was added by user Tech Updates 16 May 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3 once and liked it people.