/**
 * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
 *
 * 
 * @param array int整型一维数组 
 * @return int整型一维数组
 */
function FindNumsAppearOnce( array ) {
    // write code here
    const map = new Map()
    let count = 1
    for(item of array){
        if(map.has(item)){
            map.set(item,++count)
        }else{
            map.set(item,1)
        }
    }
    let arr = []
    for([key,value] of map){
        console.log(key,value)
        if(value===1){
            arr.push(key)
        }
    }
    arr.sort((a,b)=>{return a-b})
    return arr
}
module.exports = {
    FindNumsAppearOnce : FindNumsAppearOnce
};