题解 | #二进制插入#

二进制插入

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

import java.util.*;

public class BinInsert {
    public int binInsert(int n, int m, int j, int i) {
        while(j!=0)
        {
            m*=2;
            j--;
        }
        n+=m;
        return n;
    }
}

全部评论

相关推荐

点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务