Giter VIP home page Giter VIP logo

blog-comments's People

Contributors

urnotzane avatar

blog-comments's Issues

Docker的基本使用 | urnotzane

https://ithen.cn/docker-base-usage/

Docker是一个开源的应用容器引擎,开发者可以打包应用和依赖包(运行环境)到一个可移植的镜像中,然后发布到任何一个Linux或者Windows上。容器之间是独立的沙盒机制,相互之间没有任何接口。 在项目开发中,总是会因为环境配置做许多重复性的工作,比如操作系统的配置,node环境的配置,各种依赖文件需要下载等,于是Docker出现,通过Dockerfile配置文件便可以将你所需要的环境生成出来,

计数排序 | urnotzane

https://ithen.cn/counting-sort/

计数排序使用一个数组用来存储每个元素在原始数组出现次数的临时数组,在所有元素计数完毕后,再循环临时数组并根据每个元素的出现次数来构建排序后的结果。时间复杂度为O(n + k),其中n为原始数组长度,k为临时数组长度。这种排序算法虽然很快,但是需要大量内存来保存临时数组,因此更适合计算100以内的整数排序。

归并排序 | urnotzane

https://ithen.cn/merge-sort/

归并排序是将原始数组切分成较小的数组,知道每个小数组只有一个位置,接着将小数组归并成较大的数组,直到最后只有一个排序完毕的大数组。时间复杂度为O(nlog(n))。

桶排序 | urnotzane

https://ithen.cn/bucket-sort/

桶排序其实是计数排序的升级版,它将元素分为不同的桶(较小的数组),再使用一个简单的排序算法(如插入排序),将桶内的元素排序,最后合成一个数组,得出排序后的结果。

基数排序 | urnotzane

https://ithen.cn/radix-sort/#more

基数排序是一个非比较型整数排序算法,主要原理是先获取数组元素的最大值的位数(1的位数是1,10的位数是2,100的位数是3),然后每个元素的相应分位(个分位、十分位、千分位…)进行比较,依次放进合适的桶里,再合并,直到比较完每个元素的最后一个分位。

new运算符 | urnotzane

https://ithen.cn/js-new/#more

new运算符会创建一个用户定义的对象类型的实例或具有构造函数的内置对象的实例。其中具有构造函数的内置对象比如Array、Object、File等等,用户自定的对象类型比如: function Person() {}// es6class Car { constructor() { super(); }}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.