Looking for a simple Java work

"Frequency of occurrence of a digit"

Your solution will be scored against some number of hidden test cases. A sample is provided below.

Find the frequency of occurrence of a given digit in all whole numbers between 0 and a given positive integer(both inclusive).

Let's say that the number to count (we'll call it K) is 2.

So, between 0 and 35, the K (in this case 2) appears 14times:

2, 12, 20, 21, 22 (twice), 23, 24, 25, 26, 27, 28, 29 32 = 14times


Input consists of 2 lines.

First line contains the number (K) which the program needs to count.

Second line contains the number N, which is the maximum number in the range to check for occurrences of K (for example, between 0 and N).

All number are positive whole numbers. There are no decimals or fractions.


Print the number of K's appearing between 0 and N (both inclusive).

Print O if not found.

Code evaluation based on output, please do NOT output anything else.

Sample Input :



Sample Output: 14

Skills: Java, Software Architecture, C Programming, Algorithm, C++ Programming

About the Client:
( 4 reviews ) Arlington, United States

Project ID: #33782661

43 freelancers are bidding on average $37 for this job


HI..i am proficient in core Java OO programming with data structures, algorithms, AI programming and can help you write console as well as GUI desktop applications.

$50 USD in 1 day
(358 Reviews)

Hello, I have 3 years experience in C programming ,java ,Algorithm and other skills which you are required in your project . I am ready to work on your project so please give me this opportunity . Text me for discuss y More

$40 USD in 3 days
(44 Reviews)

Hi, I would like to write the respective Java program for you. You can relly on me. I am an experienced developer and mathematician. Looking forward to hear from you. Best regards, Oleg

$30 USD in 1 day
(41 Reviews)

Hello, I will do simplest coding in C++/C#/C, Java, Python using OOP, Data Structures. It looks like an assignment so, coding will be easily understandable. I have done many such works here. Lets have a chat for furthe More

$20 USD in 1 day
(92 Reviews)

Hi there, I checked your requirements and guarantee you it's gonna be done within the next few hours. Let's contact via chat so that I can start work immediately. Wish you the best.

$20 USD in 7 days
(122 Reviews)

Hi, We are a team of programmers having experience in wide varierty of skills ranging from HTML, CSS, Javascript, React js, React Native, MEAN Stack, Java, J2EE, JSP, Spring, Servelets,Kotlin, Python, Tkiniter, PyQT, More

$20 USD in 2 days
(71 Reviews)

Hi, this is very simple and i can code this for you in matter of minutes. If you are interested feel free to message me and i will try to help immediately. I completed hundreds of projects without a single problem. Th More

$15 USD in 1 day
(59 Reviews)
(16 Reviews)

Hello, I am a software and Web Developer. I hava also lot of experience in Designing. I have some rules and regulations before start of project: 1. Provide 100% work within deadline. 2. Provide unlimited revisions un More

$20 USD in 1 day
(84 Reviews)


$20 USD in 1 day
(90 Reviews)

Hi there I can do this frequency digit program in java, kindly message me to get this done right away.

$20 USD in 1 day
(29 Reviews)

******** Java Expert here ******* Hello I have deep and Solid foundation in Java with GUI. I have 5 year experience with such project with algorithm & data structure. I am focus on client's requirement and trying to s More

$20 USD in 1 day
(20 Reviews)

Hello, I hope you are doing well, how are you? if you are looking for someone who can do the job in a fast and reliable way you are in the right place! I am an expert in problem-solving, I got great experience with pro More

$30 USD in 1 day
(11 Reviews)

Hi, How are you? I am very interested in your project. I am an expert in math, physics and Programming. I have +5 experiences in matlab, python, Java, R Programming. I read your description for project carefully. I ca More

$20 USD in 7 days
(14 Reviews)

⭐ Expert of Java and C++, Data Structure, Algorithm HERE ⭐ Hi Client! I am Minh, rich experienced software expert from Vietnam. I noticed that I am appropriate to this project. As a skillful software developer, I hav More

$20 USD in 1 day
(7 Reviews)

Hi! I checked the algorithm you want, I can write one that delivers answer in Java with O(n), which is the most efficient possible. I'm very familiar with algorithms, data structures and many programming languages. I More

$25 USD in 1 day
(8 Reviews)

❤️️Hello, Thank you for your posting! ❤️️ how is it going well there now? I've checked your project description with carefully. I have already worked on this type project and delivered successfully. I am ready to discu More

$20 USD in 1 day
(3 Reviews)

Hi, I read your project description carefully. I have enough experiences in matlab, python, algorithm, mathematics, computer science, etc. So I can complete your project perfectly in time. I'd like to discuss via chat More

$20 USD in 7 days
(5 Reviews)

Hi There, Based on your Project Post, I came to know that you want an expert Java programmer. I have gone through the requirements and can do the Frequency of occurrence of a digit task. We Believe in order to achiev More

$10 USD in 1 day
(11 Reviews)

************Hi sir************ I am professional programmer with more 7 years of experience. I am very familiar with Java/C/C++/C#. And Java is OK for me. So I think this job is an ideal match with my skills and experi More

$20 USD in 1 day
(1 Review)