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 ...

         続きを読む
1 ... 20 ... 54
Bitnami