Skip to content

👏一些算法的例子都记录下来, 每一步都理解明白,加上了注释

License

Notifications You must be signed in to change notification settings

hy-liuyuzhe/hy_flutter_leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👻 平时学习一些算法的例子都记录下来, 每一步都理解明白,加上了注释,感兴趣的可以看看。

快慢指针模板代码

这里的i属于慢指针, j属于快指针

for(int i=0,j=0;j<n;j++){
    if(xxx){
        i++;
    }
}

  1. 认真审题非常重要, 一个字一个字都要读懂
  2. 排序数组首先想到二分查找
  3. 排序是去重的基础;例如三数之和15题和全排列系列

About

👏一些算法的例子都记录下来, 每一步都理解明白,加上了注释

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published