Coding Problems · 9
—
LeetCode-139: Word Break
139. Word Break Goal: Determine if a string s can be segmented into a…
—
LeetCode-97: Interleaving String
97. Interleaving String Goal: Determine if string s3 is formed by an…
—
LeetCode-189: Rotate Array
189. Rotate Array Solution 1/** 2 * @param {number[]} nums 3 * @param {number} k…
—
LeetCode-1642: Furthest Building You Can Reach
1642. Furthest Building You Can Reach Solution 1/** 2 * @param {number[]}…
—
LeetCode-704: Binary Search
704. Binary Search Goal: Search for a target in a sorted array nums. Return its…
—
LeetCode-210: Course Schedule II
210. Course Schedule II Problem Statement There are a total of numCourses…
—
LeetCode-193: Valid Phone Numbers
193. Valid Phone Numbers Solution 1grep -E '^\([0-9]{3}\)…
—
LeetCode-194: Transpose File
194. Transpose File Given file.txt:
1name age 2alice 21 3ryan 30 Desired Output:…
—
LeetCode-192: Word Frequency
192. Word Frequency Solution 1cat words.txt | tr -s ' ' '\n' | sort | uniq -c |…