Skip to content

Instantly share code, notes, and snippets.

@vigack
Created August 2, 2017 03:07
Show Gist options
  • Save vigack/97ab6d07da0c21253efc16d3eabbc021 to your computer and use it in GitHub Desktop.
Save vigack/97ab6d07da0c21253efc16d3eabbc021 to your computer and use it in GitHub Desktop.
广度优先搜索
/* 基本的实现思路:维护一个Queue,push根节点。当Queue非空,开始循环,POP->取值->PUSH LEFT节点->PUSH RIGHT节点 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment