iT邦幫忙

codewars相關文章
共有 65 則文章
鐵人賽 自我挑戰組 DAY 30

技術 [Day30] Codewars >>> 1's, 0's and wildcards (Python)

題目(5kyu): You are given a string containing 0's, 1's and one or more '?', where...

鐵人賽 自我挑戰組 DAY 29

技術 [Day29] Codewars >>> Weight for weight (Python)

題目(5kyu): My friend John and I are members of the "Fat to Fit Club (FFC)&q...

鐵人賽 自我挑戰組 DAY 28

技術 [Day28] Codewars >>> Consecutive k-Primes (Python)

題目(5kyu): A natural number is called k-prime if it has exactly k prime factors,...

鐵人賽 自我挑戰組 DAY 27

技術 [Day27] Codewars >>> First non-repeating character (Python)

題目(5kyu): Write a function named first_non_repeating_letter that takes a string...

鐵人賽 自我挑戰組 DAY 26

技術 [Day26] Codewars >>> Pete, the baker (Python)

題目(5kyu): Pete likes to bake some cakes. He has some recipes and ingredients. U...

鐵人賽 自我挑戰組 DAY 25

技術 [Day25] Codewars >>> Decimal to Factorial and Back (Python)

題目(5kyu): Coding decimal numbers with factorials is a way of writing out number...

鐵人賽 自我挑戰組 DAY 24

技術 [Day24] Codewars >>> Split Strings (Python)

題目(6kyu): Complete the solution so that it splits the string into pairs of two...

鐵人賽 自我挑戰組 DAY 23

技術 [Day23] Codewars >>> Numbers and its Reversal Having Same Prime Factors. (Python)

題目(5kyu): The number 1089 is the smallest one, non palindromic, that has the sa...

鐵人賽 自我挑戰組 DAY 22

技術 [Day22] Codewars >>> Rot13 (Python)

題目(5kyu): ROT13 is a simple letter substitution cipher that replaces a letter w...

鐵人賽 自我挑戰組 DAY 21

技術 [Day21] Codewars >>> Luck check (Python)

題目(5kyu): In some countries of former Soviet Union there was a belief about luc...

鐵人賽 自我挑戰組 DAY 20

技術 [Day20] Codewars >>> Integers: Recreation One (Python)

題目(5kyu): 1, 246, 2, 123, 3, 82, 6, 41 are the divisors of number 246. Squaring...

鐵人賽 自我挑戰組 DAY 19

技術 [Day19] Codewars >>> Calculating with Functions (Python)

題目(5kyu): A perfect power is a classification of positive integers: In mathemat...

鐵人賽 自我挑戰組 DAY 18

技術 [Day18] Codewars >>> Probabilities for Sums in Rolling Cubic Dice (Python)

題目(5kyu): When we throw 2 classical dice (values on each side from 1 to 6) we h...

鐵人賽 自我挑戰組 DAY 16

技術 [Day16] Codewars >>> Mean Square Error (Python)

題目(5kyu): Complete the function that accepts two integer arrays of equal length...

鐵人賽 自我挑戰組 DAY 15

技術 [Day15] Codewars >>> Where my anagrams at? (Python)

題目(5kyu): What is an anagram? Well, two words are anagrams of each other if the...

鐵人賽 自我挑戰組 DAY 14

技術 [Day14] Codewars >>> Not very secure (Python)

題目(5kyu): In this example you have to validate if a user input string is alphan...

鐵人賽 自我挑戰組 DAY 13

技術 [Day13] Codewars >>> Scramblies (Python)

題目(5kyu): Complete the function scramble(str1, str2) that returns true if a por...

鐵人賽 自我挑戰組 DAY 12

技術 [Day12] Codewars >>> Gap in Primes (Python)

題目(5kyu): The prime numbers are not regularly spaced. For example from 2 to 3 t...

鐵人賽 自我挑戰組 DAY 11

技術 [Day11] Codewars >>> RGB To Hex Conversion (Python)

題目(5kyu): The rgb function is incomplete. Complete it so that passing in RGB de...

鐵人賽 自我挑戰組 DAY 10

技術 [Day10] Codewars >>> Maximum subarray sum (Python)

題目(5kyu): The maximum sum subarray problem consists in finding the maximum sum...

鐵人賽 自我挑戰組 DAY 9

技術 [Day9] Codewars >>> Playing with digits (Python)

題目(6kyu): DESCRIPTION:Some numbers have funny properties. For example: 89 --&gt...

鐵人賽 自我挑戰組 DAY 8

技術 [Day8] Codewars >>> Build a pile of Cubes (Python)

題目(6kyu): Your task is to construct a building which will be a pile of n cubes....

鐵人賽 自我挑戰組 DAY 7

技術 [Day7] Codewars >>> Number of trailing zeros of N!(Python)

題目(6kyu): Write a program that will calculate the number of trailing zeros in a...

鐵人賽 自我挑戰組 DAY 6

技術 [Day6] Codewars >>> Two Sum (Python)

題目(6kyu): Write a function that takes an array of numbers (integers for the tes...

鐵人賽 自我挑戰組 DAY 4

技術 [Day4] Codewars >>>The search for Primes! Twin Primes!(Python)

題目(6kyu): A twin prime is a prime number that is either 2 less or 2 more than a...

鐵人賽 自我挑戰組 DAY 3

技術 [Day3] Codewars >>> Counting Duplicates (Python)

題目(6kyu): Count the number of DuplicatesWrite a function that will return the c...

鐵人賽 自我挑戰組 DAY 2

技術 [Day2] Codewars >>> Multiples of 3 or 5 (Python)

題目(6kyu): If we list all the natural numbers below 10 that are multiples of 3 o...

鐵人賽 自我挑戰組 DAY 1

技術 [Day1] Codewars >>> Persistent Bugger (Python)

開場白 筆者非本科系24歲,過去沒有上過正式程式課程的經驗。買了堂線上程式課後決定來寫codewars練習,參加鐵人賽紀錄我學習的日常,長期目標是未來能從0開始...