http://www.geeksforgeeks.org/pattern-searching-set-8-suffix-tree-introduction/http://www.allisons.org/ll/AlgDS/Tree/Suffix/StringAlgo kodeknight pattern matching See alsoFor a Given node of a binary tree, print the K distance nodes.Find the distance between 2 nodes in Binary TreeFind the distance between 2 nodes in Binary TreeProgram to count leaf nodes in a binary treeFriend Circle - Hackerrank