ccccourse / alg111a

課程:演算法 -- 筆記、習題與報告
1 stars 42 forks source link

演算法 第 6 週 -- 簽到討論區 #10

Open ccckmit opened 2 years ago

ccckmit commented 2 years ago

遞迴,函數式編程,Lambda Calculus

class Solution:
    def largestPerimeter(self, nums: List[int]) -> int:
        nums.sort()
        print('nums=', nums)
        for i in range(len(nums)-3, -1, -1):
            a, b, c = nums[i:i+3]
            print('a=', a, 'b=', b, 'c=', c)
            if a+b > c:
                return a+b+c
        return 0

簽到範例:

  1. 陳鍾誠 在 e320
  2. 史奴比 在 家
Selesfia commented 2 years ago

胡禎恩 在家

iwantall2333 commented 2 years ago

莊汶娟 在 e320

eggwu96007 commented 2 years ago

吳柏翰 在 e320

jackuio440 commented 2 years ago

劉爵寬 在 e320

derek120432 commented 2 years ago

李韋德 在E320

zraiz commented 2 years ago

邵南翔 在家

WForU commented 2 years ago

何文旺 在家

victor881212 commented 2 years ago

陳宏遠 在E320

shaoan901226 commented 2 years ago

黃紹安 在家

Uriel58 commented 2 years ago

林成也 在 e320

110810550 commented 2 years ago

呂學誠 在家

2001wei commented 2 years ago

姜禹詩 在家

feliciachou commented 2 years ago

周佳蒨在家

ZKX-0326 commented 2 years ago

陳彥翔 在家

Lin610313 commented 2 years ago

林庭光在家

YangTiChu commented 2 years ago

楊堤筑 在 E320

jiajianong commented 2 years ago

呂嘉融 在家

cynthia1231 commented 2 years ago

張芷榕 在 E320

patrick901218 commented 2 years ago

張昀翰 在家

Roy-Roo commented 2 years ago

羅彥翔 在家

Soober9260 commented 2 years ago

施威帆 在家

Vialbum commented 2 years ago

林鈺翔 在家

OohelloworldoO commented 2 years ago

鄭智陽 在家

jenny126 commented 2 years ago

蔡宜潔 e320

al2698 commented 2 years ago

姜呈諭 在e320

stereomp3 commented 2 years ago

魏仲彥 在e320

wukunru commented 2 years ago

吳昆儒 在家

owen4096 commented 1 year ago

劉彥廷 在家