Git Product home page Git Product logo

data-structures-and-algorithms's Introduction

Data-structures-and-algorithms

算法中一些特殊的数据结构(C++标准库实现)

1.单调队列

​ [单调队列](01 单调队列/01 单调队列.md)

​ 单调队列的特点是队列中的元素按照一定的单调性进行排序。通常情况下,单调队列是非递增的,也就是说,队列中的元素从队首到队尾是依次递减的。这种设计使得获取最大值变得非常高效,时间复杂度为 O(1)。

​ 单调队列常用于解决一些需要维护滑动窗口最大值的问题,例如求解滑动窗口最大值、滑动窗口最小值、滑动窗口中的最大值等等。它的高效性和简洁性使得它成为一种重要的数据结构。

data-structures-and-algorithms's People

Contributors

life-studied avatar

Watchers

 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.