Tags » BF's

Chapter 8 - Part 3

“Open up!” Wihll demanded. “It’s Wihll!”

The wooden door creaked open as Wihll walked into the dim room. At the table, Silvia sat reading through a book. 1,068 more words

Brave Fighting Sun

117. Populating Next Right Pointers in Each Node II

Follow up for problem “Populating Next Right Pointers in Each Node“.

What if the given tree could be any binary tree? Would your previous solution still work? 130 more words

Java

116. Populating Next Right Pointers in Each Node

Given a binary tree

    struct TreeLinkNode {
      TreeLinkNode *left;
      TreeLinkNode *right;
      TreeLinkNode *next;
    }

Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to… 170 more words

Java

107. Binary Tree Level Order Traversal II

Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root). 136 more words

Java

Chapter 8 - Part 2

“Gavin, are you sure you’re just going to head back?” Gale asked.

“It’s not like I have any other options,” Gavin said. “There’s going to be a long talk with the general, I’m sure. 1,586 more words

Brave Fighting Sun

Chapter 8 - Part 1

Alan had anticipated for this day as he donned on his blue cape. It would be the first time he would meet Fercewend the General, as well as Isaac Kunigunde. 2,400 more words

Brave Fighting Sun

Chapter 7 - Part 3

Henry looked onward as he could make out the country of Iiayikohn in the distance. It had been a long five days, but he was finally going to end up in Iiayikohn. 1,122 more words

Brave Fighting Sun