文件名称:algorithms:以直观的方式记录各种算法
文件大小:2KB
文件格式:ZIP
更新时间:2024-05-03 13:16:29
Kotlin
记录各种算法。 根据蜂窝形成规则寻找蜂窝位置的问题 var pos = - 1 // note. For current position in layer(Not setted yet). var max = 0 // note. For maximum value of current layer. var layer = 0 // note. For get current layer in honeycomb. var diff = 6 // note. Increasing value rule which when layer increased. fun main() { var end = 70 // note. This is just input value (You could input any number here you want).
【文件预览】:
algorithms-master
----kotlin()
--------honeycomb.kt(1KB)
----README.md(1KB)