原创 codewars--Primes with Even Digits

Codewars–Stay away for many days Problem Description: 點擊此處獲取題目 Find the closest prime number under a certain intege

原创 Codewars--Basic DeNico

Basic DeNico Click here to get the problem! Problem My Solution: def de_nico(key,msg): #key_sort = sorted(key)

原创 codewars--How Many Numbers? II

How Many Numbers? II Click here to get problem. Problem Description: We want to find the numbers higher or equal than

原创 codewars--Identifying Top Users and their Corresponding Purchases On a Website

Identifying Top Users and their Corresponding Purchases On a Website Problem Description: Click here to get the prob

原创 Codewars--How many numbers III?

How many numbers III? Problem Description: Click here to get the original problem. We want to generate all the number

原创 Codewars--Phone Directory

Phone Directory Finally, I got it! Problem Description: John keeps a backup of his old personal phone book as a text

原创 Codewars--Prefill an Array

Prefill an Array Problem Description: Create the function prefill that returns an array of n elements that all have

原创 Codewars--String Mix

String Mix Problem Description: Given two strings s1 and s2, we want to visualize how different the two strings are.

原创 Codewars--Format a string of names like 'Bart, Lisa & Maggie'.

Format a string of names like ‘Bart, Lisa & Maggie’. Problem Description: Given: an array containing hashes of names

原创 Codewars--Unary function chainer

Unary function chainer Problem Description: Your task is to write a higher order function for chaining together a lis

原创 Codewars--Who likes it?

Codewars–Who likes it? Problem Description: You probably know the “like” system from Facebook and other pages. People

原创 Codewars--Persistent Bugger

Persistent Bugger Problem Description: Write a function, persistence, that takes in a positive parameter num and retu

原创 Codewars--Fold an array

Fold an array Problem Description: As you see, if the count of numbers is odd, the middle number will stay. Otherwi

原创 Codewars--Delete occurrences of an element if it occurs more than n times

Delete occurrences of an element if it occurs more than n times Descrition of Problem: Enough is enough! Alice and B

原创 Codewars--Rectangle into Squares

Rectangle into Squares problem describtion The drawing below gives an idea of how to cut a given “true” rectangle in