https://github.com/ayubamini/returnsignofproduct
Microsoft Codility exam (May 2021) - Return sign product an array
https://github.com/ayubamini/returnsignofproduct
array codility codility-solutions microsoft
Last synced: about 2 months ago
JSON representation
Microsoft Codility exam (May 2021) - Return sign product an array
- Host: GitHub
- URL: https://github.com/ayubamini/returnsignofproduct
- Owner: ayubamini
- Created: 2021-07-17T22:48:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-17T22:57:06.000Z (almost 4 years ago)
- Last Synced: 2023-09-09T19:32:56.113Z (almost 2 years ago)
- Topics: array, codility, codility-solutions, microsoft
- Language: C#
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReturnSignOfProduct (Microsoft Codility exam May 2021)
Write a function solution that, given an array A of N intergers between (-100 and 100) of the product of all the numbers in the array multiplied together. Assume that N is between 1 and 1000.For example:
Given A = [1, -2, -3, 5], the function should return 1 (the multiplication equal 30)
Given A = [1, -2, -3, 5], the function should return 1 (the multiplication equal -30)
Given A = [1, 2, 0, -5], the function should return 0 (the multiplication equal 0)