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

Evner: Java, Software Arkitektur, C programmering, Algoritme, C++ Programmering

Om klienten:
( 4 bedømmelser ) Arlington, United States

Projekt ID: #33782661

43 freelancere byder i gennemsnit $37 timen for dette 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 på 1 dag
(358 bedømmelser)

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 Flere

$40 USD in 3 dage
(44 bedømmelser)

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 på 1 dag
(41 bedømmelser)

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 Flere

$20 USD på 1 dag
(92 bedømmelser)

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 dage
(122 bedømmelser)

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, Flere

$20 USD in 2 dage
(71 bedømmelser)

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 Flere

$15 USD på 1 dag
(59 bedømmelser)
(16 bedømmelser)

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 Flere

$20 USD på 1 dag
(84 bedømmelser)


$20 USD på 1 dag
(90 bedømmelser)

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

$20 USD på 1 dag
(29 bedømmelser)

******** 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 Flere

$20 USD på 1 dag
(20 bedømmelser)

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 Flere

$30 USD på 1 dag
(11 bedømmelser)

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 Flere

$20 USD in 7 dage
(14 bedømmelser)

⭐ 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 Flere

$20 USD på 1 dag
(7 bedømmelser)

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 Flere

$25 USD på 1 dag
(8 bedømmelser)

❤️️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 Flere

$20 USD på 1 dag
(3 bedømmelser)

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 Flere

$20 USD in 7 dage
(5 bedømmelser)

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 Flere

$10 USD på 1 dag
(11 bedømmelser)

************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 Flere

$20 USD på 1 dag
(1 bedømmelse)