Skip to content

Product of Two Integers

Sar Champagne Bielert edited this page Apr 8, 2024 · 7 revisions

Unit 1 Session 1 (Click for link to problem statements)

U-nderstand

Understand what the interviewer is asking for by using test cases and questions about the problem.

  • Can I assume both inputs will always be integers?
    • Yes.

P-lan

Plan the solution with appropriate visualizations and pseudocode.

General Idea: Implement a function to calculate a product, then return the result.

I-mplement

def product(a, b):
	return a * b
Clone this wiki locally