Tag: online judge
IP Addresses consist of two kinds. The IPv4 and IPv6. The IPv4 is 32-bit that contains 4 bytes. For example, X.Y.Z.U where four digits (0 to 255) are separated …
At the annual meeting of Board of Directors of Acme Inc, every one starts shaking hands with everyone else in the room. Given the fact that any two persons …
Given a text file file.txt, transpose its content. You may assume that each row has the same number of columns and each field is separated by the ‘ ‘ …
Given an integer, write a function to determine if it is a power of two. This is not new, and the solution has been posted at Using a Faster …
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. …