Skip to content

george16886/LeetCode-Journey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

LeetCode Journey @george16886's blog

  • Programming language: C++
  • Environment: Ubuntu 16.04, Windows 10 x64
  • Tool: Visual Studio Code

To run the code with Visual Studio Code

Windows 10

  • Use settings in .vscode
  • Create folder exe

Ubuntu 16.04

  • Use settings in .vscode_ubuntu
  • Create folder bin

Coding with Visual Studio Code @Win10 x64

Using GCC with MinGW

  1. Install Visual Studio Code.
  2. Install the C/C++ extension for VS Code.
    • Search for 'C++' in the Extensions view (Ctrl+Shift+X) of VS Code
  3. Install Mingw-w64.
    • Architecture -> x86_64
  4. Add the path to your Mingw-w64 bin folder to the Windows PATH environment variable.
    • 本機右鍵 -> 內容 -> 進階 -> 環境變數
    • 選 Path -> 編輯 -> 新增(若安裝 Mingw-w64 時沒有更新路徑直接複製下面一行即可)
    • C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
  5. In VS Code, press F5 to run.
    • C++ (GDB/LLDB)
    • g++.exe - 建置及偵錯使用中的檔案