---
title: "Discussion on \"LeetCode 191. Number of 1 Bits\" | Hashnode"
description: "Discussion on \"LeetCode 191. Number of 1 Bits\". Problem Overview\nThe goal is to write a function that takes an unsigned integer and returns the number of ‘1’ bits it has in its binary representation. This value is also known as Hamming weight. This is the classic bit manipulation problem.\nSolution..."
url: "https://hashnode.com/posts/leetcode-191-number-of-1-bits/684b095fa4b4b014d8f91667"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode 191. Number of 1 Bits](https://blog.brucelinweb.com/leetcode-191-number-of-1-bits?utm_source=hashnode&utm_medium=feed)

Problem Overview The goal is to write a function that takes an unsigned integer and returns the number of ‘1’ bits it has in its binary representation. This value is also known as Hamming weight. This is the classic bit manipulation problem. Solution...

Jun 12, 2025 · 2 min read · blog.brucelinweb.com  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Bruce Lin](https://hashnode.com/@lalalala0620)

@lalalala0620

  
[View profile](https://hashnode.com/@lalalala0620)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
