幻想的心甚至比背景颜色更洁白一些,而事实上它们的颜色是完全相同的。
The illusory heart even looks slightly whiter than the background, although it is actually the same shade.
给定一个包含红色、白色、蓝色这三个颜色对象的数组,对它们进行排序以使相同的颜色变成相邻的,其顺序是红色、白色、蓝色。
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
应用推荐