EN VI
Posts (0)
Questions (2)
2024-03-15 13:00:06
In last lines you can do like: values1 = [-10, 100, 300] fix_numbers_1 = fixNumbers(values1) print(fix_numbers_1) Full code below: def fixNumbers(list): newList = [] for i in list: i...
Tags: python list return
2024-03-16 03:30:07
Your use of new in operator+ indeed creates a memory leak, because you are not delete'ing the new'd object before return'ing a copy of it. Every new needs a matching delete, and every new[] needs a m...
Tags: c++ memory memory-leaks

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login