Code Monkey home page Code Monkey logo

Comments (8)

tiankonguse avatar tiankonguse commented on July 23, 2024

two-sum 这道题的编号是 1,则可以使用下面的格式:
格式1:
problems/two-sum/1.cpp
problems/two-sun/tiankonguse-1.cpp

格式2:
problems/1/two-sum.cpp
problems/1/tiankonguse-two-sum.cpp

格式3:
problems/1/1.cpp
problems/1/tiankonguse-1.cpp

from leetcode-solutions.

HiSunzhenliang avatar HiSunzhenliang commented on July 23, 2024

个人赞成格式2

from leetcode-solutions.

Skymemory avatar Skymemory commented on July 23, 2024

格式2

from leetcode-solutions.

zwkcoding avatar zwkcoding commented on July 23, 2024

仅供参照
格式:
problems/0001-two-sum/tiankonguse-cpp-0001/main.cpp

ref to Play-Leetcode/main.cpp at master · liuyubobobo/Play-Leetcode

from leetcode-solutions.

zwkcoding avatar zwkcoding commented on July 23, 2024

如果想归类题目,可以参照这样子:
algo/c-cpp at master · wangzheng0822/algo

from leetcode-solutions.

tiankonguse avatar tiankonguse commented on July 23, 2024

如果想归类题目,可以参照这样子:
algo/c-cpp at master · wangzheng0822/algo

关于分类,后面有规划

from leetcode-solutions.

tiankonguse avatar tiankonguse commented on July 23, 2024

仅供参照
格式:
problems/0001-two-sum/tiankonguse-cpp-0001/main.cpp

ref to Play-Leetcode/main.cpp at master · liuyubobobo/Play-Leetcode

那采用这种格式吧:

problems/0001-two-sum/main.cpp
problems/0001-two-sum/tiankonguse.cpp
problems/0001-two-sum/tiankonguse-dfs.cpp
problems/0001-two-sum/tiankonguse-dp.cpp
problems/0001-two-sum/tiankonguse-dp2.cpp

from leetcode-solutions.

tiankonguse avatar tiankonguse commented on July 23, 2024

考虑到文件名
也需要起到是那道题的作用,这里采用这样的格式:

假设是 1049 题

problemset-new/010/1049-last-stone-weight-ii/1049-main.cpp
problemset-new/010/1049-last-stone-weight-ii/1049-tiankonguse.cpp
problemset-new/010/1049-last-stone-weight-ii/1049-tiankonguse-dfs.cpp
problemset-new/010/1049-last-stone-weight-ii/1049-tiankonguse-dp.cpp
problemset-new/010/1049-last-stone-weight-ii/1049-tiankonguse-dp2.cpp

from leetcode-solutions.

Related Issues (2)

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.