刷题笔记:Leetcode和剑指Offer等
语言:
-
C++(为主)
-
Python
LintCode
Interview-Notebook: 含剑指Offer题解、Leetcode题解、算法等内容
coding-interview-univerity: 含算法与数据结构、C++/ JAVA /Python面试经验等
刷题笔记:LeetCode和剑指Offer等
刷题笔记:Leetcode和剑指Offer等
语言:
C++(为主)
Python
LintCode
Interview-Notebook: 含剑指Offer题解、Leetcode题解、算法等内容
coding-interview-univerity: 含算法与数据结构、C++/ JAVA /Python面试经验等
陈老师:
您好!感谢您开源如此优秀的项目。
关于选择排序,我觉得在将min_index初始化为待排序数列的第1个元素后,不用再将array[min_index]与array[i]进行比较,因此我认为第二个for循环应该修改为for j in range(i+1, lengths);请问我的理解是否有误呢?请多多指教,谢谢!
def SelectionSort(array):
lengths = len(array)
for i in range(lengths-1):
min_index = i
for j in range(i+1, lengths):
if array[j] < array[min_index]:
min_index = j
array[i], array[min_index] = array[min_index], array[i]
return array
问雪
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.