1. Before start coding resolve the algorithm, The better way is to trace the logic that your mind followed already. Because on looking into the problem, your mind will give the solution. You have to know how the mind got that solution, in which way ?
2. We have to remember any time you are not going with Standard increment or decrements, you will loose the control on the flow then you have take it to your hand by using a if condition and break.
3. Here we need to talk about logical AND operator. It will not validate the second condition if the first condition fails. We effectively utilized that feature here. Suppose A && B is there. assume expression A is false, then it will not validate for B, it will go with the false result.
4. I feel we should always be strict to the boundaries, of the problem while developing the solution.
2. We have to remember any time you are not going with Standard increment or decrements, you will loose the control on the flow then you have take it to your hand by using a if condition and break.
3. Here we need to talk about logical AND operator. It will not validate the second condition if the first condition fails. We effectively utilized that feature here. Suppose A && B is there. assume expression A is false, then it will not validate for B, it will go with the false result.
4. I feel we should always be strict to the boundaries, of the problem while developing the solution.
Comments
Post a Comment