Start hiring job-fit candidates using this assessmentGET A DEMO
"We are impressed by the caliber, depth, and breadth of the assessments provided by Interview Mocha. With Interview Mocha's online proctoring & powerful reports, we are able to hire quality candidates overcoming geographical barriers."
Co-founder & director
Recently, Michel found few straws each of length 1 inch in the storeroom.
He took all of them and decided to mark a rectangular area on the floor with straws and warn the rest of the family members not to enter that area so that he can play in peace.
He wants to maximize that area. Write a program for him to find maximum area that he can cover in inches using Z straws.
A square cannot be considered as a rectangle.
Straws cannot be bent/broken while marking the rectangular area.
The first line contains a single integer Z - Number of straws.
Print the area of the largest rectangle that can be formed using the given straws.
3 i.e. (3*1)
Good News! You can customize this test as per your requirement
Choose and add questions from Interview Mocha question libraries
Add your own set of questions
Customize test settings like duration, number of questions, passing score, web proctoring and much more
Mail us at firstname.lastname@example.org to create a custom test
Looking for a tailor-made test, to suit your assessment needs?Get in touch
Global companies using Mocha assessments
How Mocha assessments are brewed
Speed up your IT recruitment with Interview Mocha
- 500+ IT skill tests
- 20+ coding languages
- 50+ domain knowledge tests
- 100+ digital 2.0 skill tests
- Customer focus aptitude tests
- Enterprise ready features & more...