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
2022-12-20 00:32:34 +08:00
2023-01-04 14:56:16 +08:00
2022-11-25 13:22:59 +08:00
2022-12-15 01:12:03 +08:00
2022-11-17 15:32:50 +08:00
2022-12-15 01:12:03 +08:00
2022-12-07 22:47:31 +08:00

《 Hello算法 》

动画图解、能运行、可讨论的
数据结构与算法快速入门教程


 

前往阅读 > hello-algo.com

关于本书

本书面向数据结构与算法初学者,致力于达成以下目标:

  • 开源免费,所有同学都可在网上获取本书;
  • 新手友好,适合算法初学者自主学习入门;
  • 动画讲解,尽可能地保证平滑的学习曲线;
  • 代码导向,提供精简、可运行的算法代码;
  • 讨论学习,提问一般能在三日内得到回复;

如果感觉本书对你有所帮助,请点个 Star 支持一下,谢谢!

推荐语

“一本通俗易懂的数据结构与算法入门书,引导读者手脑并用地学习,强烈推荐算法初学者阅读。”

—— 邓俊辉,清华大学计算机系教授

贡献

我们正在加速更新本书,期待您来一起参与创作,以帮助其他读者获取更优质的学习内容:

  • 如果发现笔误、无效链接、内容缺失、文字歧义、解释不清晰等问题,烦请您帮忙修正;
  • 代码翻译 C++, Python, Go, JavaScript, TypeScript 正在进行中,期望您前来挑大梁;
  • 欢迎您通过提交 Pull Request 来增添新内容,包括重写章节、新增章节等;

有任何问题请与我联系 WeChat: krahets-jyd

感谢本开源书的每一位撰稿人,是他们的无私奉献让这本书变得更好,他们是:

License

The texts, codes, images, photos, and videos in this repository are licensed under CC BY-NC-SA-4.0.

Description
《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 代码。简体版和繁体版同步更新,English version ongoing
Readme CC-BY-NC-SA-4.0 192 MiB
Languages
Other 46.8%
Java 10.7%
C++ 9.9%
Python 8.8%
Swift 6.9%
Other 16.9%