https://github.com/windsting/answer-for-coding-interviews
牛客网的 《剑指offer》习题,使用 C# 语言进行解题尝试。
https://github.com/windsting/answer-for-coding-interviews
Last synced: 5 months ago
JSON representation
牛客网的 《剑指offer》习题,使用 C# 语言进行解题尝试。
- Host: GitHub
- URL: https://github.com/windsting/answer-for-coding-interviews
- Owner: windsting
- Created: 2019-11-19T09:27:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T09:28:00.000Z (over 6 years ago)
- Last Synced: 2025-01-23T11:45:28.153Z (over 1 year ago)
- Language: C#
- Size: 68.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 《剑指offer》习题练习
牛客网的 [《剑指offer》习题](https://www.nowcoder.com/ta/coding-interviews),使用 C# 语言进行解题尝试。
代码在 [src](./src) 文件夹内,按照题目在网站目录页的排序添加了序号,其中序号后带有 `---` 的文件(比如 **27---_Permutation.cs**)表示本人未能独立通过该题目的测试,是在参考了其他人的答案之后才完成。
部分题解内带有一个 `Test()` 方法,其中的测试数据基本都来自牛客网练习中的测试用例。
其中的第12题 **Power** 使用了 JavaScript,其中的 C# 代码在测试用例输入 `2,3` 的时候提示:
```
不通过
您的代码已保存
答案错误:您提交的程序没有通过所有的测试用例
case通过率为0.00%
用例:
2,3
对应输出应该为:
8.00000
你的输出为:
8
```