Triangle Containment

Source: Project Euler 102

  1. Read the problem and summarise the task requirements.
  2. How can you determine whether a given point lies inside or outside a triangle?
  3. Design an algorithm to solve the problem.

  4. Analyse the time complexity of your algorithm and estimate its running time.

  5. Implement this algorithm in code.
  6. Submit your output for judging!