排序演算法 1
今天來介紹氣泡排序法跟插入排序法,分別是兩個比較基礎好用的排序法
氣泡排序法
氣泡排序法原理是將兩個相鄰的數值做比較,若前面一個數值比後面的大就...
簡單來說只要用腳本讓攝影機能夠去跟隨玩家角色的位置就行了
實作
using System.Collections;
using System.Collectio...
Sum Type
我們先來看一下 Bool 在 Haskell 是如何被定義的
data Bool = False | True deriving (Read...
先前把reader和book拆為2個aggregate,但一個交易會同時影響2個aggregate。這邊試著用另一個function處理(domain serv...
Day 8: Function Composition
Given an array of functions [f1, f2, f3, ..., fn], r...
New 21 Game
Q: https://leetcode.com/problems/new-21-game/description/
/*
dp[...