ประโยคภาษาจีน : 中文句子 |
---|
suǒ yǐ 所以 biàn lì 遍历 suǒ yǒu 所有 tiáo mù 条目 jì shù 计数 bìng 并 fēn lèi 分类 tā men 它们 rán hòu 然后 xuǎn zé 选择 de 的 zuì dà 最大 de 的 chéng mì 乘幂 zuò wéi 作为 shù zǔ 数组 bù fen 部分 de 的 chǐ cun 尺寸 tā 它 shǐ de 使得 shù zǔ 数组 bù fen 部分 chāo guò 超过 bàn shù 半数 de 的 yuán sù 元素 bèi 被 tián chōng 填充 |
So, Lua traverses all entries, counting and classifying them, and then chooses as the size of the array part the largest power of 2 such that more than half the elements of the array part are filled. |