You need to log in or create an account to post to this user's Wall.
Shundan Xiao commented on the post, Printing a Binary Tree in Zig Zag Level-Order 7 months ago
The Deque java version. Used only one Deque, verified by OJ.
public ArrayList<ArrayList> zigzagLevelOrder(TreeNode root) {
ArrayList<ArrayList> result = new ArrayList<ArrayList>();
Deque […]Shundan Xiao commented on the post, Print All Combinations of a Number as a Sum of Candidate Numbers 11 months ago
I think the answer of online judge is wrong. It is still the version which sorts the candidates array first.
Shundan Xiao commented on the post, Longest Palindromic Substring Part I 1 year ago
Hi, I think there is a bug in this method:
string expandAroundCenter(string s, int c1, int c2) {
// that’s what to added to make it correct. otherwise if you have
//s=”bc”, c1=0 and c2=1, you won’t be able […]Shundan Xiao became a registered member 1 year ago
