
CodeWars笔记
文章平均质量分 54
Z-Chelsea
风与月同行
展开
-
[CodeWars]Matrix Determinant
CodeWars里的4kyu题目Matrix Determinant 题目说明: Description: Write a function that accepts a square matrix (N x N 2D array) and returns the determinant of the matrix. How to take the determinant of a matrix – it is simplest to start with the smallest cases: A 1x1原创 2021-10-03 11:32:55 · 546 阅读 · 1 评论 -
[CodeWars] Last digit of a large number
CodeWars里的5kyu题目Last digit of a leage number 题目说明: Description: Define a function that takes in two non-negative integers aaa and bbb and returns the last decimal digit of aba^ba b . Note that aaa and bbb may be very large! For example, the last decimal di原创 2021-09-20 12:36:34 · 464 阅读 · 0 评论 -
[CodeWars] Convert Decimal Degrees to Degrees, Minutes, Seconds
CodeWars 里的7kyu题目 Convert Decimal Degrees, Minutes, Seconds 题目说明: Description: Convert Decimal Degrees to Degrees, Minutes, Seconds. Remember: 1 degree = 60 minutes; 1 minute = 60 seconds. Input: Positive number. Output: Array [degrees, minutes, seconds].原创 2021-09-19 17:11:50 · 235 阅读 · 0 评论 -
【CodeWars】 Pete, the baker
CodeWars 里的5kyu题目 Pete,the baker 题目说明: Description: Pete likes to bake some cakes. He has some recipes and ingredients. Unfortunately he is not good in maths. Can you help him to find out, how many cakes he could bake considering his recipes? Write a func原创 2021-09-11 13:22:40 · 300 阅读 · 0 评论 -
【CodeWars】What is between?
Codewars里的8kyu题目 What is between? 题目说明: Complete the function that takes two integers (a, b, where a < b) and return an array of all integers between the input parameters, including them. For example: a = 1 b = 4 –> [1, 2, 3, 4] Python解决方法: 采用循环与列表,原创 2021-09-10 18:38:13 · 127 阅读 · 0 评论