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.
配列には、配列内の要素が前の要素と等しい、1 より小さい、または 1 より大きいというプロパティがあります。 例: 6,6,6,5,4,3,3,4,5,5。
インタビューで尋ねられるように、必要な O(N) ソリューションよりも優れています。