Walmart Coding Question – Solved

3 Live
Ruest for Mystic Numbers Problem Statement the land of Numeria, the ancient sages have discovered a magical property in me numbers that they call "Mystic Numbers". These numbers hold special wers that can influence the harmony of the universe. You, as an apprentice to e sages, have been tasked with identifying these MysticNumbers. The sages define a Mystic Number as follows: 1. It must be an even number. 2. When the digits of the number are repeatedly summed until a single- digit number is obtained, this single-digit result must be even. You are given two boundaries, N1 and N2, which represent a range of numbers. your quest is to find all the Mystic Numbers within this range and report them back to the sages. Input Format The input contains two space-separated integers N1 and N2 denoting the two poundaries range of numbers. Output Format Print a list of all Mystic Numbers between N1 and N2. Constraints 1<= N1, N2 ≀ 10^9

Asked in: Walmart

Image of the Question

Question Image

All Testcases Passed βœ”



Passcode Image

Solution


Please login to view the solution


Related Questions

| Given an n x m grid, where rows are numbered from 7 to n and columns from 1 to … |
| There are 'N' coders standing in a line, where i denotes the ith position of a … |
| A birthday party was attended by N number of kids, and each kid was given a uni… |
| Given a matrix of size m * n, where m denotes the number of rows (starting with… |
| A traveler is traveling from the city of Zeta to Omega. He starts with X amount… |
| As an operations engineer at Amazon, you are responsible for organizing the dis… |