CtCI-6th-Edition README

The project's README from github.com/careercup/CtCI-6th-Edition. As one markdown file: README.md.

CtCI-6th-Edition

Solutions for Cracking the Coding Interview 6th Edition by Gayle Laakmann McDowell.

Crowdsourcing solutions for every widely used programming language. Contributions welcome.

Cloning

Solutions in Java are contained directly in this repo and are the same solutions found in the book. Solutions in other programming languages are contributed by the community and each have their own dedicated repos which are referenced from this repo as git submodules. What this means for cloning:

Contributing

Work Flow

  1. Fork the appropriate repo for your language to your GitHub user. (see Where to submit pull requests)
  2. Write quality code and lint if applicable.
  3. Add tests if applicable.
  4. Open a pull request and provide a descriptive comment for what you did.

Where to submit pull requests

Pull requests pertaining to Java solutions should be submitted to the main CtCI-6th-Edition repo. Please submit pull requests for all other languages to the appropriate language-specific repo.

Adding a new Language

Solutions in other languages are welcome too and should follow this workflow:

  1. Create the new repo under your own GitHub user account and start contributing solutions. The repo name should follow this naming convention: CtCI-6th-Edition-<language>.
  2. Open an issue on the CtCI-6th-Edition repo to request that your solution repo be promoted to join the careercup GitHub organization and referenced from the main repo as a git submodule.
  3. If your request is approved, navigate to your repo's settings page and select the "Transfer Ownership" option, and specify "careercup" as the new owner.

CtCI-6th-Edition (careercup/CtCI-6th-Edition)

Searching Database…

这是干什么的?这是社区为 Gayle Laakmann McDowell 所著《程序员面试金典(第6版)》(Cracking the Coding Interview, 6th Edition)这本书整理的练习题解,由众多编程语言的使用者共同贡献——Java 的题解就放在这个仓库里。
所有题解都存在这一个仓库里,还是有些放在别的地方?这里只存放 Java 的题解;其他每种语言都有自己专门的社区仓库,本仓库通过 git submodule 的方式引用它们。
我要怎么克隆才能把所有语言的题解都拿到?用 'git clone --recursive' 就能一次性获取所有语言;普通的 'git clone' 只会拿到 Java 部分,如果之前已经克隆过,之后可以用 'git submodule update --init --recursive' 把其他语言的题解补上。
没有我用的语言——能让它加进来吗?可以:先在你自己的 GitHub 账号下创建一个名为 CtCI-6th-Edition-YourLanguage 的仓库,把题解贡献到那里,然后在主仓库开一个 issue,申请把该仓库纳入 careercup 组织并作为 submodule 引用。
我发现一个 Python 题解有 bug——修复应该提交到哪里?不要提交到这个仓库——只有 Java 的 pull request 才会提交到主仓库 CtCI-6th-Edition;Python(以及其他所有语言)的修复都应提交到对应语言自己的仓库。
这里的 Java 题解和书里的完全一样吗?是的——README 中说明本仓库的 Java 题解与书中的完全相同;其他语言的题解则是社区编写的。
Creator
careercup
Size
21 MB
Stars
11.5K
Updated
CommitNov 13
Age
11y
Commits · 90 Days