I know there are many good answers using dfs in c++ with vector. So does anyone know how to use malloc function in C to write this one?
Hi, I just posed my C solution:
Hope it's useful to you.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.