iT邦幫忙

一級屠豬士 的所有留言 408

leetcode with python:412. Fizz Buzz

x = [ 'Fizz' * (n % 3 == 0) + 'Buzz' * (n % 5 == 0) or str(n) for n in range(1,4...

[SwiftUI] 如何統計數字重複的次數

#!/usr/bin/swift let arr = [2, 1, 2, 3, 5, 6, 8, 9] let counts = arr.reduce(in...

Test / Validation 對中文使用者的困惑

好文! 有空還是要回來巡一下田水.

Golang - 不用for迴圈,利用遞迴反轉字串

package main import ( "fmt" ) func reverseStrRecursion(input strin...

SQL語法疑問?

create table it0418 ( pno char(1) not null , price int not null ); insert int...