LeetCode Weekly Contest 242 1問目 - Longer Contiguous Segments of Ones than Zeros [1869]

Source

LeetCode Weekly Contest 242
問題文

問題概要

省略

解法

省略

cLayversion 20210524-1)のコード

C++に変換後のコードはこちら

#define main dummy_main
{}
#undef main

class Solution {
public:
  bool checkZeroOnes(string s) {
    return arrCountValSeqMax(s,'1') > arrCountValSeqMax(s,'0');
  }
};

Current time: 2024年04月27日12時28分14秒
Last modified: 2021年05月24日21時57分47秒 (by laycrs)
Tags: Competitive_Programming_Incomplete LeetCode
トップページに戻る

Logged in as: unknown user (not login)

ログイン: