35

一些可以让你装逼、让人眼前一亮的算法技巧总结

 4 years ago
source link: https://juejin.im/post/5cd83d11e51d453adf1fa71e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
今天和大家讲讲,在做算法题时常用的一些技巧。对于平时没用过这些技巧的人,或许你可以考虑试着去看看在实践中能否用的上这些技巧来优化问题的解,相信一定会让你有所收获,不然你看我。 1. 巧用数组下标 数组的下标是一个隐含的很有用的数组,特别是在统计一些数字,或者判

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK