-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
找茬 #13
Comments
'''顺便问一下, 有什么快捷方法把我贴上去的代码直接转成"代码样式"嘛? 我是每行行首手动复制了四个空格...有些麻烦''' 有些ide(比如eclipse) 支持一键自动ident。全选之后 |
希尔排序的shell_insert里面:
还有, 我问的不是IDE中如何自动indent, 而是这GitHub中如何自动让代码变成上面这种框框. 看了一下这里https://help.github.com/articles/github-flavored-markdown, 原来用 ``` 包裹起来就好了. |
感谢找茬,要多多找茬,我有时间会仔细看一下:) |
作者你好,我刚刚看这本书,对于第一章说的一点有点怀疑 但是我经过实验发现即使是复数,使用 x % 2 == 1也可以负数的奇数可以找出来。。 实验平台:x86-64 int main() 运行结果: gcc版本号: |
这个技巧是跟编译器相关的,因为C++标准没有规定负数除法,所以不同的编译器是不同的 现代的gcc , vc的等编译器尽可能与主流保持一致,所以我的这个技巧已经过时了 On Friday, August 8, 2014, yinwuzhe [email protected] wrote:
My tech blog: http://www.soulmachine.me |
92页, 归并排序
出现了连续两行
/* 数组元素的类型/
typedef int elem_t;
merge函数中第一个循环 for(i = 0...) 应该是 for(i = start...)
基数排序, 应该提供给用户统一的接口, 即void Sort(int A[], int len)
96页中的 a[0].link = current = front[j]; 应改为 a[0].link = front[j];
getDigit中的10应该改为R
第四页strstr第一个for循环的继续条件应该是 _p1_advance && *p 否则会访问越界. 此外, 第二个for里的while不必判断_p1因为p1不会越过p1_advance.
我原先的Leet Code代码
看了你的代码后借鉴着写了:
顺便问一下, 有什么快捷方法把我贴上去的代码直接转成"代码样式"嘛? 我是每行行首手动复制了四个空格...有些麻烦
The text was updated successfully, but these errors were encountered: