Object strikes a rod

An object of mass m and speed v0 strikes the bottom of a rigid uniform rod of length l and mass M that is hanging by a frictionless pivot in a wall. The pivot is through the center of mass of the rod, and is fastened to a wall, so that the rod can rotate about its center. Immediately after striking the rod, the object continues forward with half its initial speed.
a) Find the angular speed immediately after the collision
b) For what value of v0 will the rod just reach a horizontal position (before falling back down again)?

(For additional practice, you could re-solve this problem as if it was hanging from a ceiling instead; what would be different?)

a) Angular speed right after collision
More Conservation of Angular Momentum Questions: