LeetCode Biweekly Contest 69 1問目 - Capitalize the Title [2129]

Source

LeetCode Biweekly Contest 69
問題文

問題概要

省略

解法

省略

cLay(version 20220312-1)のコード

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

#define main dummy_main
{}
#undef main

class Solution {
public:
  string capitalizeTitle(string title) {
    VS arr = Explode(title, " ");
    for(auto &s : arr){
      s = toLower(s);
      if(s.size() >= 3) s[0] = toupper(s[0]);
    }
    return Implode(arr, " ");
  }
};

Current time: 2024年05月19日00時26分39秒
Last modified: 2022年03月12日23時53分01秒 (by laycrs)
Tags: Competitive_Programming_Incomplete LeetCode
トップページに戻る

Logged in as: unknown user (not login)

ログイン: