Division 2
250 pts - Taxi
Idea FlowInput_Constraint ~ We cannot use more than one loop.
Question Hints ~ "Segments parallel to the axes".
Conclusion ~ We need to find the triangle sum of a+b is given. Need to find the whether an right triangle can be formed or not with the given constraint.
Learnt lesson ~ Fast and correct interpretation of question is needed. (drawing diagrams ll help out).
500 pts - Dating
Idea FlowInput_Constraint ~ Brute Force is possible.
Question Hints ~ "Given all letters are distinct".
Conclusion ~ Do imagine the question as a straight queue rather than circular queue. More easy to code and solution is small.
Learnt lesson ~ Spend some time to think for an alternative idea.
1000 pts - CircleOrder
Idea Flow
Input_Constraint ~ Brute Force is possible.
Question Hints ~ "Circular track so landing spot and initial car position must be in Circular order.
Conclusion ~ Above hint isn sufficient to come up with the solution and need to find whether all character is able to reach the destination.
Learnt lesson ~ Understanding the question and little tweek ll provide the solution. So trying for different cases ll be provide better understanding of the question and you ll come to an implementation.
No comments:
Post a Comment