Problem Link : https://practice.geeksforgeeks.org/pr...[]=-2&sortBy=submissions
Name : Parallel or Perpendicular?
=========================================================
Description :
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 = a1 * b1 + a2 * b2 + a3 * b3
A x B = (a2 * b3 - a3 * b2) i - (a1 * b3 - b1* a3) j + (a1 * b2 - a2 * b1) k
|A|2 = a12 + a22 + a32
If A.B = 0, then A and B are perpendicular.
If |A X B|2 = 0, then A and B are parallel.
=========================================================
Please Like, Comment and Share the Video among your friends.
Timestamps:
00:00 - Intro
00:06 - Approach
01:47 - Code
04:05 - Outro
Also, Subscribe if you haven't already! :)
#datastructure,
#algorithem,
#computerscience
#prepareyourself
#cpp
#array
#geeksforgeekssolution
#leetcodesolution
#arraysolutioninhindi
#datastructureinhindi
#GFGPractice #GeeksforGeeks #PracticeProblems #codingquestions
Nesta página do site você pode assistir ao vídeo on-line Parallel or Perpendicular? || @GeeksforGeeks || Problem Solving || Solution || Gorakh Codes duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário gorakhcodes 28 Agosto 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 48 vezes e gostou like espectadores. Boa visualização!