連登第一個leetcode contest討論區
柏克萊特母 2022-5-28 11:45:37 今晚香港時間22:30~00:00
[LeetCode] - Biweekly Contest 79



Q&A
Q:Leetcode咩黎咖?食得咖?
A:google啦屌你老母
Q:玩黎有咩用咖?食得咖?
A:google啦屌你老母

:^(

Ads

漢語多功能字庫 2022-5-28 11:49:05
:^(
漢語多功能字庫 2022-5-28 11:53:07
:^(
柏克萊特母 2022-5-28 11:56:39
:^(
漢語多功能字庫 2022-5-28 12:00:48 #3
漢語多功能字庫 2022-5-28 12:03:19
:^(
裂曲風紀 2022-5-28 12:16:47 支持一齊打,入tg group我地個個禮拜10幾條友打,不過入面啲人好勁
:^(
檸檬榚 2022-5-28 13:59:58 冇興趣
:^(
柏克萊特母 2022-5-28 14:52:12
:^(
:^(
:^(
檸檬榚 2022-5-28 14:53:13 唔好借啲意推post
:^(
光之美細妹 2022-5-28 15:53:18 有d人一個半鐘2-3條,有d人,例如裂曲sir半個鐘3-4條

Ads

裂曲風紀 2022-5-28 21:50:17 40分鐘開始
https://leetcode.com/contest/biweekly-contest-79/
柏克萊特母 2022-5-28 22:25:54 仲有5分鐘
:^(
:^(
:^(
柏克萊特母 2022-5-28 22:26:21 條撚準備
:^(
:^(

有裂巴推po
:^(
:^(
柏克萊特母 2022-5-28 22:35:28 輕鬆秒殺Q1
入Q2
:^(
:^(
:^(
柏克萊特母 2022-5-28 22:58:07 Q2煩膠到
:^(
:^(
:^(

依家先做完
柏克萊特母 2022-5-28 23:20:38 Q3棄權
:^(
:^(
:^(
:^(
Inhaler 2022-5-28 23:23:11 巴打可唔可以貼d 題目睇下
:^(
裂曲風紀 2022-5-28 23:34:26 仆街,q4又segment tree,今日學segment tree先,做唔到
柏克萊特母 2022-5-28 23:36:08 6083. Check if Number Has Equal Digit Count and Digit Value

You are given a 0-indexed string num of length n consisting of digits.

Return true if for every index i in the range 0 <= i < n, the digit i occurs num[i] times in num, otherwise return false.

Example 1:
Input: num = "1210"
Output: true
Explanation:
num[0] = '1'. The digit 0 occurs once in num.
num[1] = '2'. The digit 1 occurs twice in num.
num[2] = '1'. The digit 2 occurs once in num.
num[3] = '0'. The digit 3 occurs zero times in num.
The condition holds true for every index in "1210", so return true.
Inhaler 2022-5-28 23:39:25 呢個好似counter forloop 就做完 有無下題
:^(

Ads

裂曲風紀 2022-5-28 23:45:37
:^(

:^(
柏克萊特母 2022-5-28 23:51:37 巴打做成點
:^(
:^(

Q4完到?
裂曲風紀 2022-5-28 23:55:11 唔識segment tree,知道方向,一條max tree一條sum tree,唔識寫,放棄lol,今日學返segment tree
柏克萊特母 2022-5-29 00:16:14 唔想學新野了,做下contest希望唔生梳就算
:^(

q3原來勁易
:^(
:^(
:^(
:^(
:^(

痾個屎10分鐘唔洗都寫完