Hey Everyone! So I was searching for some random problem-solving questions and came across this interesting problem. After spending some time solving this, I came up with this solution and thought to share it with you guys as I didn’t find any proper solution for this problem.
Problem Statement: For a given string, Find the numbers present inside the string and return the count of them. [Sorry don’t remember the exact statement so made this up]
Sample Test Case:
string = "Th1s i5 a string with 50m3 numb3r5"
[1, 5, 50 3, 3, 5]
Hello World! Welcome to the blog…
You guys can also try amazing room by purchasing a premium subscription of TryHackMe.
Alright! Let's begin.
Go to Authenticate Room inside Your Hacktivities:
Task 1 — Deploy the VM: