Skip to content

Pure C solutions for LeetCode. Contains unit tests and helper methods. (纯C解题, 包含单元测试和帮助方法)

Notifications You must be signed in to change notification settings

SaulLawliet/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 定期刷题, 为了保持思维的活跃
  • 只用 C 解题, 手写数据结构和对内存的管理
  • 每个 solution 都包含单元测试
  • 最后, 特别感谢 miloyip/json-tutorial

脚本使用说明

# 执行第1题
c/test.sh 1
# 执行前10题
c/test.sh $(seq 10)
# 执行全部题
c/test.sh all
# 执行库文件的测试
c/test.sh lib

# -m 开启内存泄露检查, 使用valgrind, 如
c/test.sh -m 1
c/test.sh -m all
c/test.sh -m lib

注意, 有一些没有编号的题放在 c/000/ 目录下

# 用法: c/test.sh <文件名前缀> 
# 原理: ls "c/000/$1*.c"
# 例如: c/000/perform-string-shifts.c
c/test.sh perform-string-shift
#
c/test.sh perform

其他

官方会调整函数的参数以及测试用例
如果有小伙伴发现失效的解答
可以提醒我一下, 多谢~❤️

About

Pure C solutions for LeetCode. Contains unit tests and helper methods. (纯C解题, 包含单元测试和帮助方法)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy