ICode9

精准搜索请尝试: 精确搜索
  • 位运算 翻转数位2022-06-28 00:01:02

      You have an integer and you can flip exactly one bit from a 0 to a 1. Write code to find the length of the longest sequence of 1s you could create. Example 1: Input: num = 1775(110111011112)Output: 8Example 2: Input: num = 7(01112)Output: 4 来源:力扣(LeetCo

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有