---
title: "Discussion on \"Smallest Number in Infinite Set\" | Hashnode"
description: "Discussion on \"Smallest Number in Infinite Set\". You have a set which contains all positive integers [1, 2, 3, 4, 5, ...].\nImplement the SmallestInfiniteSet class:\nSmallestInfiniteSet() Initializes the SmallestInfiniteSet object to contain all positive integers.\nint popSmallest() Removes and return..."
url: "https://hashnode.com/posts/smallest-number-in-infinite-set/631b59a3f73f4734bc051acf"
---

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

Discussion

# [Smallest Number in Infinite Set](https://awsbuilder.hashnode.dev/smallest-number-in-infinite-set?utm_source=hashnode&utm_medium=feed)

You have a set which contains all positive integers \[1, 2, 3, 4, 5, ...\]. Implement the SmallestInfiniteSet class: SmallestInfiniteSet() Initializes the SmallestInfiniteSet object to contain all positive integers. int popSmallest() Removes and return...

Sep 9, 2022 · 1 min read · awsbuilder.hashnode.dev  
Read the article

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

## Written by

[Salah Elhossiny](https://hashnode.com/@Salah856)

@Salah856 · Egypt

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

ML Specialist @Bullzaye.ai

AWS Community Builder, AWS ML Specialist, Full-Stack Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
