---
title: "Discussion on \"Remove K Digits\" | Hashnode"
description: "Discussion on \"Remove K Digits\". Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num. \nExample 1:\nInput: num = \"1432219\", k = 3\nOutput: \"1219\"\nExplanation: Remove the three digits 4, 3, and..."
url: "https://hashnode.com/posts/remove-k-digits/67fc05f7d662fdce15cce04c"
---

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

Discussion

# [Remove K Digits](https://dynamicprogramming.hashnode.dev/remove-k-digits?utm_source=hashnode&utm_medium=feed)

Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num. Example 1: Input: num = "1432219", k = 3 Output: "1219" Explanation: Remove the three digits 4, 3, and...

Apr 13, 2025 · 3 min read · dynamicprogramming.hashnode.dev  
Read the article

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

## Written by

[Abhi](https://hashnode.com/@abhikommen)

@abhikommen

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
