Triangle Containment
Source: Project Euler 102
- Read the problem and summarise the task requirements.
- Try to keep your response to a couple of sentences.
- How can you determine whether a given point lies inside or outside a triangle?
- There’s an orientation method and an area method.
Design an algorithm to solve the problem.
Analyse the time complexity of your algorithm and estimate its running time.
- Implement this algorithm in code.
- Reflector:
- What potential pitfalls can you think of?
- Write some tests to check for these pitfalls.
- Other group members:
- Write a program which solves the problem.
- Run your tests and debug if necessary.
- Submit your output for judging!