Skip to content

Islatri/LeetkoCpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetkoCpp

A cargo-like runner for C/C++/Rust LeetCode problems

PS D:\CodeZone\CppZone\LeetkoCpp> npm run run:cpp group_anagrams

> [email protected] run:cpp
> node run.js --cpp group_anagrams

🔨 Building project...
🔨 Building C/C++ projects...
Running CMake...
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100.
-- Building specific example: group_anagrams
-- Added C++ target: group_anagrams
-- Found both C and C++ versions of 'group_anagrams', C version will be named 'group_anagrams_c'
-- Added C target: group_anagrams_c
-- Total targets: group_anagrams;group_anagrams_c
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/CodeZone/CppZone/LeetkoCpp/build
Building with MSBuild...
MSBuild version 17.12.12+1cce77968 for .NET Framework

  group_anagrams.cpp
  group_anagrams.vcxproj -> D:\CodeZone\CppZone\LeetkoCpp\build\bin\Release\group_anagrams.exe
✅ Build completed!
🚀 Running group_anagrams (🔷 CPP)...

📍 Executable: build\bin\Release\group_anagrams.exe

Test case 1: 
[eat, tea, ate]
[tan, nat]
[bat]
All tests passed! ✅

📊 Process exited with code 0
PS D:\CodeZone\CppZone\LeetkoCpp> npm run run:c two_sum         

> [email protected] run:c
> node run.js --c two_sum

🔨 Building project...
🔨 Building C/C++ projects...
Running CMake...
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100.
-- Building specific example: two_sum
-- Added C++ target: two_sum
-- Found both C and C++ versions of 'two_sum', C version will be named 'two_sum_c'
-- Added C target: two_sum_c
-- Total targets: two_sum;two_sum_c
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/CodeZone/CppZone/LeetkoCpp/build
Building with MSBuild...
MSBuild version 17.12.12+1cce77968 for .NET Framework

  two_sum.vcxproj -> D:\CodeZone\CppZone\LeetkoCpp\build\bin\Release\two_sum.exe
✅ Build completed!
🚀 Running two_sum (🔹 C)...

📍 Executable: build\bin\Release\two_sum_c.exe

Test case 1: [0, 1]
Test case 2: [1, 2]
Test case 3: [0, 1]
All tests completed! ✅

📊 Process exited with code 0
PS D:\CodeZone\CppZone\LeetkoCpp> npm run run:rust longest_consecutive_sequence

> [email protected] run:rust
> node run.js --rust longest_consecutive_sequence

🔨 Building project...
🦀 Building Rust projects...
  Compiling longest_consecutive_sequence.rs...
✅ Build completed!
🚀 Running longest_consecutive_sequence (🦀 RUST)...

📍 Executable: build\rust\longest_consecutive_sequence.exe

Test case 1:
Expected: 4, Got: 4
Test case 2:
Expected: 9, Got: 9
Test case 3:
Expected: 0, Got: 0
Test case 4:
Expected: 3, Got: 3
All tests passed! ✅

📊 Process exited with code 0

About

A cargo-like runner for C/C++/Rust LeetCode problems

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published