Aritra, please fix the test suite. There is a typo in assert function.
Also, the correct answer for first test (and the example) is 2003, not 2005!
Khaled, I believe the answer to the first one is still 2005, as the person has to be 65 years old. Once a member hits 65 years old, their age plus years as a member must be >100. At least, that's how I read the problem description.
Yes. The test suite needs to be fixed.
@james, You are correct. I missed the first condition.
@Aritra : Fix the test suite. you have typed y as 'yy' in your test suite.correct it
I fixed the obvious typo with the "yy".
Thanx @Ned for fixing d typo. thnx everyone for their concern
Sort a list of complex numbers based on far they are from the origin.
4352 Solvers
Sum of first n terms of a harmonic progression
262 Solvers
Who has power to do everything in this world?
321 Solvers
Simple equation: Annual salary
3801 Solvers
433 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!