Example 1:Input: {1,3,#}Output: {1,#,3}Explanation: 1 1 / => 3 3Example 2:Input: {1,2,3,#,#,4}Output: {1,3,2,#,4}Explanation: 1 1 / \ / 2 3 => 3 2 / 4 4
来源: http://www.bubuko.com/infodetail-3013375.html