/**
 * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
 *
 * 
 * @param ID int整型一维数组 
 * @param content string字符串一维数组 
 * @param word string字符串 
 * @return int整型一维数组
 */
 function invertedIndex( ID ,  content ,  word ) {
    // write code here
    let map = new Map()
    let res = []
    for(let i=0;i<ID.length;i++){
        map.set(content[i],ID[i])
    }
    for(let key of map.keys()){
        if(key.indexOf(word)!==-1){
            res.push(map.get(key))
        }
    }
    return res
}
module.exports = {
    invertedIndex : invertedIndex
};