Coder Social home page Coder Social logo

codinginterviewchinese2-1's Introduction

CodingInterviewChinese2

《剑指offer》第二版java代码和测试。

本库目的

让码农更愿意去实践书上的例子代码。帮你写好测试和函数签名,你只需要完成函数功能就行。正确不正确运行一下test就知道了。

  • 使用junit测试,一般ide都支持,如果不支持。请运行gradlew test 命令。
  • 项目用gradle管理依赖。所有代码都写在test目录下。方便写代码的童鞋能同时方便的看到测试用例。方便理解。

本代码有2个分支,建议先用master分支自己写代码,然后通过测试以后再参考src分支的答案

如何使用(master分支)

  • 下载或者通过ide导入gradle工程。
  • 所有问题的框架和测试代码都写完,你只需要补充完成没有完成的函数。然后点击ide中的测试。或者如下:
  • 在项目跟目录下运行gradlew test命令。如果没有错误就ok。

src分支为大部分答案。

  • 这个分支是已经完成的代码,你可以参考

完善

所有的测试代码本人都写完了,但是,用例写的不够多,也不保证都正确。 src分支中的答案也有一些没有完成,所有想继续本项目的请联系我给权限。

想一起完善本库的注意

(master分支不能写代码,只能写测试用例,src分支可以写代码) master分支是我们写好测试代码,让其他人学习的人去完成答案! src作为参考答案 本人扣扣:3200601

要更新测试用例:

  • 先chekout master分支,更新测试。
  • chekout src分支,合并master分支中的test代码。

要更新src分支:

  • 直接chekout src分支,然后更新代码就行

最后希望大家可以找到理想的工作。 觉得有帮助的请点个star。3块6 另外leetcode 库 leetcode

codinginterviewchinese2-1's People

Contributors

jchanghong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.