Data Structures & AlgorithmsModerateICPC regional · geometry

Problem: What does the cross product of two 2D vectors (a, b) and (c, d) equal?

  1. A. ad - bc
  2. B. ac + bd
  3. C. a + b + c + d
  4. D. ab - cd

Correct answer: A. ad - bc

The 2D cross product is the determinant ad - bc, whose sign gives the turn direction.

More Coding Interview Problems questions

Exams that ask this topic