MeetCode
Dot Product
C
C++
Computer Mathematics
CSS
DSA
HTML
Java
JavaScript
NodeJS
PHP
Programming Interview
Python
ReactJS
SQL
Run
Submit
Dark
Problem Statement
Solutions
Submissions
Dot Product
Easy
Computer Mathematics
Linear Algebra Basics
25 views
Explanation
Complexity
Problem Statement
Compute dot product of two vectors.
Input Format
n then vector A then vector B.
Output Format
One integer.
Example
Input
3 1 2 3 4 5 6
Output
32
Constraints
n
Input / Output Format
Input Format
n then vector A then vector B.
Output Format
One integer.
Constraints
n
Examples
Input:
3 1 2 3 4 5 6
Output:
32
Example Solution (Public)
Computer Mathematics
Compute sum ai*bi.
Official Solution Code
Wrap
Copy
Compute sum ai*bi.
Please
login
to submit solutions.
Editor
C
C++
Computer Mathematics
CSS
DSA
HTML
Java
JavaScript
NodeJS
PHP
Programming Interview
Python
ReactJS
SQL
Test Cases
Output
Submission Result
Input
3 1 2 3 4 5 6
Expected Output
32
Compile Output
Error
Output
Please
login
to submit solutions.