1.0.4 • Published 2 years ago

juejin-count v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

juejin-count

NPM Version NPM Downloads Install Size

使用

image

// count.js
// 因为引入node-fetch,包只能以esm形式导出
import {count} from 'juejin-count'

count([1, 1, 1, 2, 2, 3], ['+', '+', '*', '*', '/'], 11)
$ node count.js
最终表达式:
[
  1,   '+', 1,   '/', 1,
  '*', 2,   '*', 2,   '+',
  3
]
最终表达式从左至右计算即可得到结果

检验:((((1+1)/1)2)2)+3=11

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago