You are browsing the archive for 2010 March.

Finding intersection of two sorted arrays

March 12, 2010 in binary search

Find the intersection of two sorted arrays.

Read the rest of this entry →

A binary tree problem – Populating next right pointers in each node

March 12, 2010 in binary tree

Given a binary tree

Populate the nextRight pointers in each node.

Read the rest of this entry →