Coder Social home page Coder Social logo

algorithm-gojs's Introduction

算法与数据结构

数据结构部分

介绍了基本数据结构之线性表的特点和原理以及js的算法实现。 由于js语言本身的特点,线性表在js中主要以数组的应用为主,而js数组本身也并不是传统意义上的连续线性表。

js对象大家都用的很多,但其底层的哈希表特性你是否清楚? 在这篇文章里,小茄会用最平白易懂的语言来讲哈希结构的原理、构造方法,当然,还有哈希表在js中的应用。

树是一种带有层次的数据结构,分层特性可以用于实现数据存储和快速查找。 比较常见的应用场景就是各种目录结构,如文件目录、DOM结构等,由于每指定一层就是一层筛选,所以可以用于快速查找。 js中可以通过对象的哈希结构来实现树结构,两种数据结构结合,速度更快。

算法部分

做任何算法的时候,都要先弄清需求!如果是需要构造一个函数,那一定要弄清楚函数的调用方式、各参数的含义,多举几个例子说明。只有弄懂了这个函数应该是怎样的,才有可能写出符合要求的函数

Array array.js

  • indexOfArray:数组子串位置查询

  • arrayFilter:数组筛选

  • arrayUnique: 数组去重

  • combineArray: 数组归并排序

  • longestSubArray: 数组最长无重复子串查找

  • longestSubArrayHash: 利用哈希表去重的数组最长无重复子串查找

sort sort.js

recursiverecursive.js

other

leetcode

LeetCode的golang解题

algorithm-gojs's People

Contributors

qieguo2016 avatar

Watchers

 avatar  avatar

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.