摘要: Problem StatementA sequence of numbers is called a zig-zag sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may be either positive or negative. A sequence with fewer than two elements is trivially a zig-zag 阅读全文
posted @ 2013-09-05 23:08 丶Blank 阅读(809) 评论(0) 推荐(0) 编辑