Leetcode 暑期bb班

495 回覆
251 Like 31 Dislike
2022-06-21 04:09:33
呢個po應該對喺香港搵工嘅人冇咩幫助
2022-06-21 13:26:53
香港公司唔考algo?
2022-06-28 10:58:16
Easy 一日十幾題都得
上到medium即刻收皮
佢啲難度分級唔多準
有啲easy都卡到我半日
有啲hard 1粒鐘KO
2022-06-28 10:59:20
題外話 stefanpochman / oldcodingfarmer 同 lee215真係好神
2022-07-16 14:29:18
Lm
2022-07-17 08:29:03
我想問大家做leetcode 係咪唔會import module?
2022-07-17 11:32:27
做leetcode時唔需要
不過有基本認知係好事
因為有啲interview用嘅ide本身無import
熟啲會好啲
2022-07-18 06:47:13
玩緊個啲咩15日challenge
beginner level 都題題個幾鐘 想喊 仲要係垃圾曲 好後悔讀U個時冇認真學 algorithm
後面個啲topic 直情冇聽過

392. Is Subsequence
Given two strings s and t, return true if s is a subsequence of t, or false otherwise.

A subsequence of a string is a new string that is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (i.e., "ace" is a subsequence of "abcde" while "aec" is not).

Runtime: 28 ms, faster than 98.23% of Python3 online submissions for Is Subsequence.
Memory Usage: 13.9 MB, less than 43.99% of Python3 online submissions for Is Subsequence.

class Solution:
    def isSubsequence(self, s: str, t: str) -> bool:
        if len(s) == 1 and s not in t:
                return False
        for i in range(0,len(s)):
            if s[i] not in t:
                return False
            t = t[t.index(s[i])+1:]    
        return True
2022-07-18 12:10:22
oursky用leetcode黎in
2022-07-22 21:48:51
Algo 唔係你學咗就識打
2022-07-31 22:38:08
in唔到 我估junior 大約25k 到啦
2022-07-31 22:58:54
有一題leetcode 唔識,其餘係test 你vanilla js做web 嘅pattern, 但我係一開始就react, 所以唔係幾明佢想我點做
2022-11-04 10:20:21
我leetcode只會import依個

From collections import Counter


一般code test唔比import野
2022-11-04 10:21:42
關乜事。學校教既只係intro,真係學 要識寫,就自學 同 實際操題算。

University Education is a joke
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞