Google Japan 第二次面试
面试官打来,寒暄了一两句,就说 should we start?
我以为像上次一样,直接一道 leetcode hard 难度拍过来,没想到竟然问基础知识!
http://yonghaowu.github.io//2016/10/25/GoogleJapanInterview/继续阅读 »
题目
先把题目放上:
链接:https://leetcode.com/problems/sort-colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respec继续阅读 »