UNPKG
ts-ds-tool
Version:
latest (0.1.5)
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Data structure and algorithm of TypeScript
github.com/HaifengDu/ts-ds-tool
HaifengDu/ts-ds-tool
ts-ds-tool
/
resource
/
tree
/
huffman-tree
/
HuffmanTreeNode.d.ts
13 lines
(12 loc)
•
300 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
declare
class
HuffmanTreeNode
{
private
left;
private
value;
readonly
Value
:
string
;
Left
:
HuffmanTreeNode
;
private
right;
Right
:
HuffmanTreeNode
;
private
weight;
readonly
Weight
:
number
;
isLeaf
():
boolean
;
constructor
(
value
:
string
,
weight
:
number
); }