GithubHelp home page GithubHelp logo

leetcode-parser's Introduction

Description

Helps to debug leetcode problems in IDE

Feature

  1. creating data structures such as vector,tree and list.
  2. Quickly print common containers
  3. Convert the input parameters of the Design problems into corresponding function calls.

dependencies

boost-describe when debug design problems

usage

  1. Create an array Vec<int>/Vec<string>
  2. Create a 2D array : Vec2<int>/Vec2<string>
  3. Create a linked list : List()
  4. Create a tree : Tree()
  5. Print vector/string/map... : D(name)
  6. Print Tree/List/priority_queue : name.print()

note

0.lintcode/codewars users need to replace {} with [] and # with null

1.Treat an array of parameters with multiple different types as an array of strings, and choose whether to convert to int according to whether it starts with ".
example:[[], ["leetcode"], [4], ["practice"], [3], [8], [10], [2], [6]] in 2296

2.Treat n-ary-tree as graphs

3.if you are having problems with array subscript overflow, you can choose to turn on the (/fsanitize=address) option in visual studio and set the configuration to release to get the same output as leetcode,and get the actual line number of the code location where the error occurred.

todo

1.add inliner
2.use std::setw(9),cout.width(9); to align the output to the right, which helps debug problems with grid

Any feature improvement suggestions are welcome

Thanks

pprint
leetcode-helper
caide
boost.Describe
leetcode-playground-stringToString
For recursive problems, you may like it very much
there is a better one

1.online graph tools
https://csacademy.com/app/graph_editor/
https://silverfoxxxy.github.io/graph_editor/
2.Combinations Calculator (nCr)

leetcode-parser's People

Contributors

mingyex avatar

Stargazers

 avatar  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.