lhl
首页
python
leetcode
产品思想
软件测试
博客 (opens new window)
github (opens new window)
首页
python
leetcode
产品思想
软件测试
博客 (opens new window)
github (opens new window)
  • python

  • leetcode

    • 数组

    • 位运算

      • 461. 汉明距离
    • 动态规划

    • 链表

    • 栈

    • 树

  • 软件测试

  • Git

  • linux

  • 产品

  • MySql

  • docker

  • leetcode
  • bitwise
2023-04-29

汉明距离

https://leetcode.cn/problems/hamming-distance/ (opens new window) 需要注意的点

  1. Brian Kernighan** 算法**

        s = x^y
        ret = 0
        while s:

            s &= s-1
            ret += 1

        return ret
617. 合并二叉树
53.最大子数组和

← 617. 合并二叉树 53.最大子数组和→

最近更新
01
lhl learn notes
02
filter
06-09
03
decorator
06-09
更多文章>
Theme by Vdoing
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式