---
title: "Discussion on \"Leetcode 233 (Number of Digit One) was fun.\" | Hashnode"
description: "Discussion on \"Leetcode 233 (Number of Digit One) was fun.\". This one is a math problem. And I enjoyed every bit of cracking the equation. The problem was, “Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.”\nAt first I thought of doing recursi..."
url: "https://hashnode.com/posts/leetcode-233-number-of-digit-one-was-fun/67267760f9e6fc945095e93f"
---

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

Discussion

# [Leetcode 233 (Number of Digit One) was fun.](https://shohan777.hashnode.dev/leetcode-233-number-of-digit-one-was-fun?utm_source=hashnode&utm_medium=feed)

This one is a math problem. And I enjoyed every bit of cracking the equation. The problem was, “Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.” At first I thought of doing recursi...

Nov 2, 2024 · 2 min read · shohan777.hashnode.dev  
Read the article

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

## Written by

[shohanur rahman](https://hashnode.com/@katakuri)

@katakuri

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

JavaScript Developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
