Skip to content

ModulePillow/LeetCodeTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode C++ Template Solution

A C++ template solution to manage multiple LeetCode answers simultaneously. No need to include any std headers and write the "std::" namespace prefix.

Example

#define SolutionID 0

// Start debugging, main0() will be excuted automatically.
void main0()
{
   vector<string> strings{ "Hello", "world", "."};
   for(auto& str : strings)
   {
      cout << str << " ";
   }
}

How it works

External linkage and macro designs. You can investigate them in LeetCodeTemplate.cpp.

IDE and Compiler

IDE: Visual Sudio 2022.

Compiler: MSVC or Clang. Choose the compiler at Properties>General>Platform Toolset. If you prefer Clang, you should install it in the VS Installer first.

About

A C++ template solution to manage multiple LeetCode answers simultaneously.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages