Programmers / Common Multiple
Problem
- Link
- Description
- Write a function that returns 1 if a number is a common multiple of two numbers, otherwise returns 0
- Type
- Simple Operation
Solution 1
| |
- Description
- Check for common multiple using the modulo operator
- Time Complexity
- O(1)
- Always performs the same operation
- Space Complexity
- O(1)
- Function parameters and local variables