Re: Design a function that finds all positive numbers

2019-04-09 Thread Ben Bacarisse
r...@zedat.fu-berlin.de (Stefan Ram) writes: > Ben Bacarisse writes: >>Ranjith Bantu writes: >>>can I solve any problems like this by learning python? >>You need to learn how to solve problems as well as learning Python -- > > I do not separate "solving the problem" from "using Python", > be

Design a function that finds all positive numbers

2019-04-09 Thread Ranjith Bantu
A numeric array of length 'N' is given. you need to design a function that finds all positive numbers in the array that have their opposites in it swell. give the approach for solving the optimal average or best case performance. answer will be your obsolute. Array: -7,4,-3, 2, 2, -8

RE: Design a function that finds all positive numbers

2019-04-09 Thread Schachner, Joseph
alues, and two 2 values, but I think you only want to print 2 once. --- Joseph S. -Original Message- From: Ben Bacarisse Sent: Tuesday, April 9, 2019 7:33 AM To: python-list@python.org Subject: Re: Design a function that finds all positive numbers Ranjith Bantu writes: > A numeric ar

Re: Design a function that finds all positive numbers

2019-04-09 Thread Ben Bacarisse
Ranjith Bantu writes: > A numeric array of length 'N' is given. you need to design a function > that finds all positive numbers in the array that have their opposites > in it swell. give the approach for solving the optimal average or best > case performance. answer