Hello,
These are very basic mistake that we all tend to make at times. Please be very carefull in your DS questions and keep following things in mind:
1. Until and Unless mentioned, if you are using "plug-in values" method, please make sure that you have tested the condition not only on integers but also on decimals
2. Always make sure that you test the values on boundary, that is -1, 0 and 1.
3. The most silly mistake that we make is we tend to use only positive values for testing the condition. Please use negative values also unless clearly stated that the given x or y is postive.
These are very basic mistake that we all tend to make at times. Please be very carefull in your DS questions and keep following things in mind:
1. Until and Unless mentioned, if you are using "plug-in values" method, please make sure that you have tested the condition not only on integers but also on decimals
2. Always make sure that you test the values on boundary, that is -1, 0 and 1.
3. The most silly mistake that we make is we tend to use only positive values for testing the condition. Please use negative values also unless clearly stated that the given x or y is postive.












