Fermé

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:

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.

Output:

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 :

2

35

Sample Output: 14

Compétences : Java, Architecture Logicielle, Programmation C, Algorithme, Programmation C++

Concernant le client :
( 4 commentaires ) Arlington, United States

Nº du projet : #33782661

43 freelances font une offre moyenne de 37 $ pour ce travail

koustav2006

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.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(358 Commentaires)
7.1
rexzetsolutions

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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(44 Commentaires)
6.6
oyasniy

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(41 Commentaires)
6.1
harissheikh255

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(92 Commentaires)
5.8
esa59cfdec1d6569

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.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(122 Commentaires)
5.9
neernab

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

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(71 Commentaires)
5.8
MimiFL

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(59 Commentaires)
5.3
(16 Commentaires)
5.6
popularcontent12

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(84 Commentaires)
5.5
khaledabutalb

...............................................................................................................

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(90 Commentaires)
5.2
haroonfarman571

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(29 Commentaires)
4.8
morhunserr

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(20 Commentaires)
4.4
amrkhaled32

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(11 Commentaires)
4.2
maksmyhalat

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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(14 Commentaires)
4.2
minh01122004

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(7 Commentaires)
3.8
BarryCrouch

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(8 Commentaires)
3.4
DoanDucAnh

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)
3.4
markovicdusan552

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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(5 Commentaires)
3.5
Abuzar16nucs

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(11 Commentaires)
3.4
fedirpiddu

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)
2.8