bfs2inorder

0.0.0 • Public • Published

bfs2inorder

Converts an index in bfs order to an inorder index.

Install

npm install bfs2inorder

Use

var bfs2inorder = require("bfs2inorder")

console.log(bfs2inorder(10, 3))

require("bfs2inorder")(n, x)

Returns the index of a node at position x in a bfs tree in an inorder traversal of the tree.

Credits

(c) 2013 Mikola Lysenko. MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    8

Package Sidebar

Install

npm i bfs2inorder

Weekly Downloads

8

Version

0.0.0

License

BSD

Last publish

Collaborators

  • mikolalysenko