GeezerVison is showing github.com — July:谁来一章一章的测试所有代码? · Issue #210 · julycoding/The-Art-Of-Programming-By-July-2nd
ActivityXuanwo commented on Mar 12, 2014 julycoding commented on Mar 12, 2014 @Xuanwo 能否找出bug 主要是看是否细心,写一些测试用例反复把程序跑几遍,确保无误即可。 Xuanwo commented on Mar 12, 2014 我正好是ACM校队的=。=,看看有没有我能胜任的吧。。
------------------ 原始邮件 ------------------
发件人: "July";[email protected];
发送时间: 2014年3月12日(星期三) 下午4:28
收件人: "julycoding/The-Art-Of-Programming-By-July"[email protected];
抄送: "漩涡"[email protected];
主题: Re: [The-Art-Of-Programming-By-July] July:谁来一章一章的测试所有代码? (#210)
@Xuanwo 能否找出bug 主要是看是否细心,写一些测试用例反复把程序跑几遍,确保无误即可。
—
Reply to this email directly or view it on GitHub. julycoding commented on Mar 12, 2014 @Xuanwo 共十章,可以认领一章,1周 - 1个月之间完成一章的测试,即可。 julycoding commented on Mar 17, 2014 @sg90
可以先只测试文章中C 和 C++ 的代码。 julycoding commented on Mar 17, 2014 sg90 commented on Mar 21, 2014 sg90 commented on Apr 16, 2014 2.1解法四的代码示例bug较多,重新编写如下:
int q_select( int a[], int k, int left, int right )
{
int i, j;
int pivot;
if( left + CUTOFF < right )
{
pivot = a[left];
i=left; j=right;
while(i < j)
{
while( i < j && a[j] >= pivot ) j--;
a[i] = a[j];
while( i < j && a[i] <= pivot ) i++;
a[j] = a[i];
}
a[i] = pivot;
if( k < i + 1 )
return q_select( a, k, left, i-1 );
else if( k > i + 1 )
return q_select( a, k, i + 1, right );
else
return a[i];
}
else {
insert_sort(a, left, right );
}
} julycoding commented on Apr 16, 2014 赞@sg90
把代码转换成C 代码吧 :-)
目前目录已经进行了很大调整,不知看到了更新没
此外,暂时只排出C 代码的bug,其它语言的代码放在下一步排除。 woiazbl commented on Apr 17, 2014 在第一章的最后一节中,寻找最长回文子串中,例程会返回比实际最长多两位的结果
for (j = 0; (i-j >= 0) && (i+j < n); ++j) // if the lengthof the palindrome is odd
if (s[i-j] != s[i+j])
break;
if (j_2+1 > max)
max = j * 2 + 1;
for (j = 0; (i-j >= 0) && (i+j+1 < n); ++j) // for theeven case
if (s[i-j] != s[i+j+1])
break;
if (j_2+2 > max)
max = j * 2 + 2;
break的时候,j已经加一了,所以要修改下max的赋值表达式。 huatangzhi commented on Apr 20, 2014 julycoding commented on Apr 21, 2014 huatangzhi commented on Apr 24, 2014 hduffddybz commented on Aug 25, 2014 julycoding commented on Oct 10, 2014 julycoding commented on Aug 28, 2015 新书即将在今年2015年9月底上市。
感谢大家的共同努力。 zhaosoap commented on Sep 2, 2015 @julycoding 你好,看了1.2 字符串包含 简单的一个题,给了四种解法。。
为什么不 直接开26个字符统计表 int['A'...'Z'], 对于每个子串字符 查表就行。
求解答 sg90 commented on Sep 6, 2015 解法四 就是这个思路
发自 Windows 邮件
发件人: zhaosoap
发送时间: 2015年9月2日, 星期三 11:16
收件人: julycoding/The-Art-Of-Programming-By-July
抄送: sg90
@julycoding 你好,看了1.2 字符串包含 简单的一个题,给了四种解法。。
为什么不 直接开26个字符统计表 int['A'...'Z'], 对于每个字串字符 查表就行。
求解答
—
Reply to this email directly or view it on GitHub. FuckFly commented on Jun 12, 2017
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|