摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The pro 阅读全文
posted @ 2019-10-17 23:58 CNoodle 阅读(140) 评论(0) 推荐(0) 编辑
摘要: The DNA sequence is composed of a series of nucleotides abbreviated as 'A', 'C', 'G', and 'T'. For example, "ACGAATTCCG" is a DNA sequence. When study 阅读全文
posted @ 2019-10-17 01:04 CNoodle 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in 阅读全文
posted @ 2019-10-17 00:08 CNoodle 阅读(470) 评论(0) 推荐(0) 编辑