zoukankan
html css js c++ java
AssemblyScript的测试
详细文档介绍
export function f(x: i32): i32 {
if (x === 1 || x === 2) {
return 1;
}
return f(x - 1) + f(x - 2)
}
测试时 f(40)=102334155 耗时566ms
不使用wasm f(40)=102334155 耗时764ms
如果要测试更大的数,需要更改传入值类型
查看全文
相关阅读:
1490. Clone N-ary Tree
1485. Clone Binary Tree With Random Pointer
*Minimum-cost Flow【网络流】
2020牛客暑期多校训练营(第一场)
P2719 搞笑世界杯
Bus Number【多重集合的排列】
New Year and Old Subsequence【矩阵+线段树+DP】
Magic Master【模拟/约瑟夫环】
The Nth Item【斐波那契】
Random Access Iterator【树上求概率】
原文地址:https://www.cnblogs.com/ckAng/p/9990315.html
最新文章
考试要点:
自学JAVA之路之接口(入门随笔)
每日日报2020 7/17
每日日报7月16
每日日报7月15
每日日报7月14
每日日报2020 7/13
每日日报7月12
每日日报 2020/7/11
每日日报 7月10
热门文章
每日日报2020 7/9
每日日报 7/8
1209. Remove All Adjacent Duplicates in String II
Check if a given array contains duplicate elements within k distance from each other.
279. Perfect Squares
fewest number of operations needed to get to 1
494. Target Sum
1009. Complement of Base 10 Integer
476. Number Complement
166. Fraction to Recurring Decimal
Copyright © 2011-2022 走看看