GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — daily_coding_problem/problems/02/problem_02.py at master · ihossai4/daily_coding_problem Expand file tree/ Copy pathproblem_02.pyMore file actions 17 lines (13 loc) · 449 Bytes / Copy pathproblem_02.pyFile metadata and controls17 lines (13 loc) · 449 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 def coding_problem_02(l): """ Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i. Solve it without using division and in O(n). Example: >>> coding_problem_02([1, 2, 3, 4, 5]) [120, 60, 40, 30, 24] """ pass if __name__ == '__main__': import doctest doctest.testmod(verbose=True) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |