begeekmyfriend/leetcode

014 longestCommonPrefix do not free memory

Closed this issue · 2 comments

014 longestCommonPrefix do not free memory

malloc(1000) maybe is not enough memory

The C runtime will automatically do it for you when you quit the main function just like some interpreters such as Python does.