摘要:
Isomorphic StringsGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All... 阅读全文
摘要:
一、Duplicate EmailsWrite a SQL query to find all duplicate emails in a table namedPerson.+----+---------+| Id | Email |+----+---------+| 1 | a@b.com... 阅读全文
摘要:
一、Implement Stack using QueuesImplement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the ele... 阅读全文
摘要:
Given an integer, write a function to determine if it is a power of two.分析:这道题让我们判断一个数是否为2的次方数(而且要求时间和空间复杂度都为常数),那么对于这种玩数字的题,我们应该首先考虑位操作 Bit Manipulat... 阅读全文