摘要:
Problem Statement Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You m 阅读全文
摘要:
Problem Statement The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this patter 阅读全文