본문 바로가기

전체 글

(1836)
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..
Second Index Quiz> You are given two strings and you have to find an index of the second occurrence of the second string in the first one. Let's go through the first example where you need to find the second occurrence of "s" in a word "sims". It’s easy to find its first occurrence with a function index or find which will point out that "s" is the first symbol in a word "sims" and therefore the index of the ..
Days Between 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. How old are you in a number of days? It's easy to calculate - just subtract your birthday from today. We could make this a real challenge though and count the difference between any dates. You are given two dates as an a..
Right to Left Quiz> "For centuries, left-handers have suffered unfair discrimination in a world designed for right-handers." Santrock, John W. (2008). Motor, Sensory, and Perceptual Development. "Most humans (say 70 percent to 95 percent) are right-handed, a minority (say 5 percent to 30 percent) are left-anded, and an indeterminate number of people are probably best described as ambidextrous." Scientific Ame..
Even the Last Quiz> You are given an array of integers. You should find the sum of the integers with even indexes (0th, 2nd, 4th...). Then multiply this summed number and the final element of the array together. Don't forget that the first element has an index of 0. For an empty array, the result will always be 0 (zero). Input: A list of integers. Output: The number as an integer. Example: checkio([0, 1, 2, 3..