Long the world's leading maker of flat-screen TVs, memory chips, and LCD screens, Samsung Electronics has become a lot sexier lately: Its Galaxy tablets have made a big splash, earnings have jumped, and it climbed four slots on our All-Star list this year to No. 38. Here's how it executed its makeover.