diff --git a/leetcode/p1480_runningsumofarray.cpp b/leetcode/p1480_runningsumofarray.cpp index d1440e5..5ef43df 100644 --- a/leetcode/p1480_runningsumofarray.cpp +++ b/leetcode/p1480_runningsumofarray.cpp @@ -1,3 +1,6 @@ +// this is a very bad solution, in this problem we do not need to use dynamic memory, because std::vector automatically uses dynamic memory internally. +// the solution below therefore is just a demonstration of how to use the new and delete operator. + class Solution { public: vector runningSum(vector& nums) {