x/masx200_leetcode_test/fan-zhuan-dan-ci-shun-xu-lcof/index.ts
12345function reverseWords(s: string): string { return s.trim().split(/\s+/g).reverse().join(" ");}export default reverseWords;