Skip to content

mingyEx/leetcode-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Helps to debug leetcode problems in IDE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published