Git Product home page Git Product logo

algo's Introduction

algo

记录一些有趣算法题目的java实现:)

分为以下几类:

  • 数字相关

    • CombineMaxNumber: 给定数组,输出由数组中数字组成的最大数字
    • EgyptFraction: 迭代加深搜索埃及分数最优解
  • 字符串相关

    • HuiwenString: 最长回文
  • 搜索相关:

    • CakeTuneProblem: 单手翻转烙饼问题,详见编程之美,基本**:遍历搜索树+有界剪枝
    • SearchInSortedMatrix: 在有序的N*N矩阵中,查找给定数字
    • FindAllPathsInMatrix: 找出从矩阵第一行第一列到最后一行最后一列的所有路径。基本**:动态规划
  • 排序相关:

    • BiSearch: 二分查找的递归和非递归实现
    • Combine2SortedArray: 合并两个有序数组
  • 数据结构相关:

    • MyPriorityQueue: 用两个stack实现的优先队列
    • MyStack: 用两个queue实现的stack
    • RecursiveSearcher: 用ForkJoin实现分而治之的递归查找
    • FindLoopInDirectedGraph: 用DFS列出有向图的所有环路

algo's People

Watchers

hong avatar James Cloos 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.