Skip to content

qianxueseng-com/toy-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toy-problems

Interview prep

LeetCode链接

说明

  • 题目顺序根据Acceptance由高到底排列,如001-nim-game,为最简单的题目
  • 在自己的LeetCode上提交代码,看看自己有没有Accepted
  • Accepted后,可在Discuss中查看网友代码,学习比较
  • 一道题可写多种解决方法,并在本地跑一遍测试运行时间,看哪个更优
  • 做完一题后Pull request到相应题目的文件夹,大家互相学习

个人代码命名方式

  • 为了解决文件名冲突和日后统计,请按这个格式命名yourname.js,如vickymin.js

Pull request方法

  • fork这个repo,看见右上方的fork按钮了吗?点它
  • 去你自己fork完的repo,点"Clone in Desktop",或者你用命令行也可
  • 将自己写的代码push到fork完的repo
  • 然后在你自己fork完的repo里面点Pull requests -> New pull request