Back to Type Challenges

README

questions/09898-medium-zhao-chu-mu-biao-shu-zu-zhong-zhi-chu-xian-guo-yi-ci-de-yuan-su/README.md

latest1.3 KB
Original Source
<!--info-header-start--><h1>Appear only once </h1><blockquote><p>by X.Q. Chen <a href="https://github.com/brenner8023" target="_blank">@brenner8023</a></p></blockquote><p><a href="https://tsch.js.org/9898/play" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.zh-CN.md" target="_blank"></a> </p><!--info-header-end-->

Find the elements in the target array that appear only once. For example:input: [1,2,2,3,3,4,5,6,6,6],output: [1,4,5].

<!--info-footer-start-->

<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/9898/answer" target="_blank"></a> <a href="https://tsch.js.org/9898/solutions" target="_blank"></a> <!--info-footer-end-->