Category: leetcode online judge
Convert a non-negative integer to its English words representation. Given input is guaranteed to be less than 231 – 1. For example, 123 – “One Hundred Twenty Three” 12345 …
Regular Expressions (Regex) are very powerful and useful tool to describe patterns. https://leetcode.com/problems/valid-phone-numbers/ Given a text file file.txt that contains list of phone numbers (one per line), write a …
How would you print just the 10th line of a file? For example, assume that file.txt has the following content: Line 1 Line 2 Line 3 Line 4 Line …
Submit your SQL to Leetcode online judge: https://oj.leetcode.com/problems/rank-scores/ Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. …
Puzzle is taken from https://oj.leetcode.com/problems/consecutive-numbers/ Write a SQL query to find all numbers that appear at least three times consecutively. +----+-----+ | Id | Num | +----+-----+ | 1 …