Category: leetcode online judge
This is classified as a hard puzzle: https://leetcode.com/problems/palindrome-pairs/ A palindrome string is a string whose reverse string is exactly the same, e.g. ABBA, 1, UIU… Brute Force Almost every …
Submit your solution: https://leetcode.com/problems/department-highest-salary/ As seen, two tables, you are asked to list the highest salary for each department and the employee name. However, if there are two or …
Leetcode Online Judge: https://leetcode.com/problems/nim-game/ You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take …
This puzzle reveals that you don’t need to write a few lines of shell scripts, you would just need one line (using pipes) to achieve complex tasks. See below: …
Submit your solution at Leetcode: maximum product of word lengths Given a string array words, find the maximum value of length(word) * length(word) where the two words do not …