我有一個矩陣[2,2] [1,0]。我需要這個2 * 2矩陣的第n個複數。當我使用簡單的乘法時,我可以在O( n)或O(logn)。 O(LOGN)代碼: int NUM(int n) { int F[2][2] ...
確定! 回上一頁