hello-algo/codes
MolDuM e0a3189f91
Update array.c
3 changes:
1. In the enlarge part, I didn't change because I didn't find a good way to deal with the local variable and the clear definition. malloc is commonly used in LeetCode so I think it is not bad for a beginner.
2. I changed the initialization of the second array to make it in the same style as C++.
3. In the enlarge part in main, I deleted the code of pointer free to match the array operations. I also changed the operate array in the later part because the enlarged array cannot be assigned to the older array name.

BTW, sorry for updating so late. Reading different version documents and book are really tiring and boring.
2023-01-04 14:56:16 +08:00
..
c Update array.c 2023-01-04 14:56:16 +08:00
cpp Merge pull request #133 from tao363/master 2022-12-20 14:14:44 +08:00
csharp Update source codes. 2022-12-20 13:20:20 +08:00
go fixed clear list in Go 2022-12-18 21:57:29 +08:00
java Merge pull request #133 from tao363/master 2022-12-20 14:14:44 +08:00
javascript Merge pull request #133 from tao363/master 2022-12-20 14:14:44 +08:00
python Merge pull request #133 from tao363/master 2022-12-20 14:14:44 +08:00
typescript Merge pull request #133 from tao363/master 2022-12-20 14:14:44 +08:00