Computers and Technology

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%

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 08:30, daskatingpanda
Formatting rows and columns is similar to cell formatting. in an openoffice calc spreadsheet, you can format data entered into rows and columns with the of the rows and columns options. you can insert rows and columns into, or delete rows and columns from, a spreadsheet. use the insert or delete rows and columns option on the insert tab. alternatively, select the row or column where you want new rows or columns to appear, right-click, and select insert only row or only column options. you can hide or show rows and columns in a spreadsheet. use the hide or show option on the format tab. for example, to hide a row, first select the row, then choose the insert tab, then select the row option, and then select hide. alternatively, you can select the row or columns, right-click, and select the hide or show option. you can adjust the height of rows and width of columns. select row and then select the height option on the format tab. similarly, select column, then select the width option on the format tab. alternatively, you can hold the mouse on the row and column divider, and drag the double arrow to the position. you can also use the autofit option on the table tab to resize rows and columns.
Answers: 1
image
Computers and Technology, 24.06.2019 10:10, nakeytrag
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
image
Computers and Technology, 24.06.2019 14:00, makaylahunt
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
image
Computers and Technology, 24.06.2019 14:30, tleppek6245
Alison is having a hard time at work because hee inbox is flooded with emails every day. some of these emails are unsolicited. some of other she don’t need. which action should she take to better manager her emails?
Answers: 1
Do you know the correct answer?
Background The marketing team at CodeSignal would like to know how many users there are in each Co...

Questions in other subjects: