subject

Background The marketing team at CodeSignal would like to know how many users there are in each Coding Score range for standardized tests like the General Coding Assessment, so that they can share that information on our website. They've asked you to create a report containing that information.
Your Mission
As input, you are given a list of scores. Coding Score can be anywhere between 300 and 850. For the purpose of this task, levels are defined in the following way:
Poor: 300-599 Fair: 600-699 Good: 700-749 Excellent: 750-799 Elite: 800 Calculate how many users are there in each level, then return a list of strings where each string represents a level and the percentage of users who fall within that range formatted like LevelName: XX. XXX Percentages should be displayed with two decimal points of precision. Levels should be sorted in decreasing order of those numbers, omitting any levels that have no users. In case of a tie the higher level should appear first For example, if you had this input... [330, 723, 750, 825] For example, if you had this input... [330, 723, 730, 825] ...then you should return the following: [ Good: 50.00%', Elite: 25.00%', Poor: 25.00% ] [execution time limit] 4 seconds (py3) • [input] array. integer scores An array of integers in the range [300, 850] [output] array. string An array of strings formatted like LevelName: XX. XX%

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Aconstruction company is creating a powerpoint presentation describing how they calculate costs during each construction step. they plan to email this presentation to clients. the individual clients will be watching the presentation slide show on their own personal computers. what is the most important formatting step the company should take to make the text readable and pleasing to the eye?
Answers: 2
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
You know the right answer?
Background The marketing team at CodeSignal would like to know how many users there are in each Co...
Questions
question
Mathematics, 12.03.2021 17:40
question
Computers and Technology, 12.03.2021 17:40
question
Mathematics, 12.03.2021 17:40
Questions on the website: 13722367