Skip to content

QIanGua/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode in CXX/Python/Julia

Requirements

  • CMake (gtest is included in src/script-cxx), GCC/Clang
  • Python3
  • Julia

Usage

C++11

  • create .cpp files in src/script-cxx, e.g., 0001-two-sums.cpp
  • chmod +x run.sh (in terminal) (build will created automatically and cmake will run in /build/)
  • run.sh: run ./run.sh problem-number or sh run.sh problem-number in parent directory (e.g., ./run.sh 0001 , 0001 is the number of problem)

Python

  • create .py files in src/script-py, e.g., 0001-two-sums.py
  • python script can be tested in the command line, i.e., python src/script-py/0001-two-sums.py

Julia

  • create .jl files in src/script-jl, e.g., 0001-two-sums.jl
  • julia script can be tested in the command line, i.e., julia src/srcript-jl/0001-two-sums.jl

About

This repository contains my LeetCode scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors