题解 | #二进制插入#

二进制插入

https://www.nowcoder.com/practice/30c1674ad5694b3f8f0bc2de6f005490

import java.util.*;

public class BinInsert {
    public int binInsert(int n, int m, int j, int i) {
        // write code here
       // m<<=j;
        m=m<<j;
        return m|n;
    }
}

全部评论

相关推荐

我要娶个什么名:学长你电脑闹鬼了
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务