Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は配列を持っていますarr = [a_1, a_5, a_0, a_4, a_2, a_4];
arr = [a_1, a_5, a_0, a_4, a_2, a_4];
上記の配列を再ソートする必要があります:
出力:arr2 = [a_0, a_1, a_2, a_3, a_4, a_5];
arr2 = [a_0, a_1, a_2, a_3, a_4, a_5];
ありがとう!