Leetcode # 204. Count Primes

Problem Counpute len([i for i in range(n) if is_prime(i)]) https://leetcode.com/problems/count-primes First Solution (Time Limit Exceeded) 質數的定義 屬於自然數 ℕ (大於 0 ) 只有兩個正因數 ( 1 和自己) 驗證是否 n 為質數只需要驗證 [2, ⌊n ...

         続きを読む

Flask + Flutter

Routing in Flask FLUTTER_DIR = os.path.join(os.sep, ...) @app.route("/app/<path:path>", methods=['GET', 'POST']) def flutter(path): path_ = path.split("/") if len(path) < 2: abort(404) projec ...

         続きを読む

[Linux] Group, Ownership & Permissions

Ownership & Permissions 參考 查看權限 Ownership User (Owner) Group Others Permissions Read Write Execute Commands 群組與使用者相關操作 查看使用者所屬群組 cat /etc/group | grep {username} 新建群組 sudo addgroup {group_name} 刪除 ...

         続きを読む

[Flutter] 基礎架構

lib/main.dart This file contains the main entry point and the application widgets.  lib/config.dart This file contains the environment settings. pubspec.yaml This file contains the package configurati ...

         続きを読む

日本語のビジネスメールの書き方

Format 件名 (Title):【{自分の所属する組織名}】{用件}について 本文 (Body): {宛名:[{組織名}][{部署名}][{役職}]{名前}様} お世話になっております (冒頭の挨拶)。[{組織名}の]{名前}です。 {本メールの結論} {詳細内容} よろしくお願いいたします (結びの挨拶)。 {署名 (簽名檔;Signature Line/Block)} 冒頭の挨拶の例 お世 ...

         続きを読む
1 ... 18 ... 52
Bitnami