摘要: Have Fun with Numbers Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it 阅读全文
posted @ 2020-02-19 22:37 HickeyZhang 阅读(258) 评论(0) 推荐(0)
摘要: 数组元素循环右移问题 一个数组A中存有N(>0)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(≥0)个位置,即将A中的数据由(A​0​​A​1​​⋯A​N−1​​)变换为(A​N−M​​⋯A​N−1​​A​0​​A​1​​⋯A​N−M−1​​)(最后M个数循环移至最前面的M个位置)。 阅读全文
posted @ 2020-02-19 13:53 HickeyZhang 阅读(468) 评论(0) 推荐(0)