Vectors
CodeChefOpen on judge ↗
Given two force vectors, find out whether they are parallel, perpendicular or neither. Let the first vector be A = a1 i +a2 j + a3 k and the second vector be B = b1 i + b2 j + b3 k. A . B = a1b1 + a2b2 + a3b3 and A X B = (a2b3 - a3b2) - (a1b3 - b1a3) + (a1b2 - a2b1) If A.B = 0, then A and B are perpendicular. If Square root of (A X B) = 0, then A and B are parallel. Your task is to pri
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start