Professional Documents
Culture Documents
07 Lap Trinh Co Ban - List, Tuple, Set, Dictionary (BT)
07 Lap Trinh Co Ban - List, Tuple, Set, Dictionary (BT)
07 Lap Trinh Co Ban - List, Tuple, Set, Dictionary (BT)
Đảo Từ (ReverseWord.*)
Cho n chuỗi s gồm các từ cách nhau bởi khoảng trắng. Hãy đảo các từ có trong chuỗi.
Input Output
1 KIEN AN CA
CA AN KIEN
4
Input Output
3 3
3 2 3
7 2
2 2 1 1 1 2 2
Ràng buộc:
• n == nums.length
• 1 <= n <= 5 * 10^4
• -10^9 <= nums[i] <= 10^9
https://leetcode.com/problems/majority-element
5
CÁM ƠN ĐÃ LẮNG
NGHE!