GithubHelp home page GithubHelp logo

algorithm's Introduction

Algorithm in JavaScript

汇集面试中经常遇到的算法和数据结构问题,通过JavaScript语言实现;

一、目录

1. 数组、矩阵

1.1 设计一个有getMin功能的栈 (★★☆☆☆)

1.2 生成窗口最大值数组 (★★★★☆)

1.3 扁平化有序数组 (★★☆☆☆)

1.4 最大全1子矩阵 (★★★☆☆)

1.5 数组去重乱序求交并差集 (★★☆☆☆)

1.6 打印螺旋矩阵 (★★☆☆☆)

1.7 矩阵分圈打印 (★★☆☆☆)

1.8 方阵旋转打印 (★★☆☆☆)

1.9 找到无序数组中的最小k个数(TOP-K问题) (★★★★☆)

1.10 需要排序的最短子数组长度(★★☆☆☆)

1.11 在数组中找到出现次数大于N/K的数 (★★★★☆)

1.12 计算数组的小和 (★★★★☆)

1.13 去掉数组中连续的数字 (★★☆☆☆)

2. 二叉树

3. 动态规划

3.1 爬楼梯 (★★☆☆☆)

4. 贪心算法

5. 链表

6. 堆栈

7. 图

8. 双指针

8.1 姓名中的重复字符 (★★☆☆☆)

8.2 颜色分类 (★★☆☆☆)

9. 滑动窗口

9.1 无重复字符的最长子串 (★★★☆☆)

10. 其他

10.1 扑克牌速算24点 (★★☆☆☆)

二、说明

  • 很多题目来自《程序员代码面试指南》一书,和网站搜集的题目;
  • 程序代码在codes目录下;
  • 持续更新中;
  • 欢迎star、fork。

algorithm's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chenky

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.