본문 바로가기

전체 글

(888)
All the Same Quiz> We have prepared a set of Editor's Choice Solutions. You will see them first after you solve the mission. In order to see all other solutions you should change the filter. In this mission you should check if all elements in the given list are equal. Input: List. Output: Bool. Example: all_the_same([1, 1, 1]) == True all_the_same([1, 2, 1]) == False all_the_same(['a', 'a', 'a']) == True all..
Non-unique Elements Quiz> We have prepared a set of Editor's Choice Solutions. You will see them first after you solve the mission. In order to see all other solutions you should change the filter. If you have 50 different plug types, appliances wouldn't be available and would be very expensive. But once an electric outlet becomes standardized, many companies can design appliances, and competition ensues, creating ..
Popular Words Quiz> In this mission your task is to determine the popularity of certain words in the text. At the input of your function are given 2 arguments: the text and the array of words the popularity of which you need to determine. When solving this task pay attention to the following points: The words should be sought in all registers. This means that if you need to find a word "one" then words like "..
Sort Array by Element Frequency Quiz> Sort the given iterable so that its elements end up in the decreasing frequency order, that is, the number of times they appear in elements. If two elements have the same frequency, they should end up in the same order as the first appearance in the iterable. Input: Iterable Output: Iterable Example: frequency_sort([4, 6, 2, 2, 6, 4, 4, 4]) == [4, 4, 4, 4, 6, 6, 2, 2] frequency_sort(['bob'..
Pawn Brotherhood Quiz> We have prepared a set of Editor's Choice Solutions. You will see them first after you solve the mission. In order to see all other solutions you should change the filter. Almost everyone in the world knows about the ancient game Chess and has at least a basic understanding of its rules. It has various units with a wide range of movement patterns allowing for a huge number of possible diff..
Sun Angle Quiz> Every true traveler must know how to do 3 things: fix the fire, find the water and extract useful information from the nature around him. Programming won't help you with the fire and water, but when it comes to the information extraction - it might be just the thing you need. Your task is to find the angle of the sun above the horizon knowing the time of the day. Input data: the sun rises ..
Digits Multiplication Quiz> We have prepared a set of Editor's Choice Solutions. You will see them first after you solve the mission. In order to see all other solutions you should change the filter. juggler You are given a positive integer. Your function should calculate the product of the digits excluding any zeroes. For example: The number given is 123405. The result will be 1*2*3*4*5=120 (don't forget to exclude ..
Bigger Price Quiz> You have a table with all available goods in the store. The data is represented as a list of dicts Your mission here is to find the TOP most expensive goods. The amount we are looking for will be given as a first argument and the whole data as the second one Input: int and list of dicts. Each dicts has two keys "name" and "price" Output: the same as the second Input argument. Example: bigg..