摘要: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Example 1: Input: 5 阅读全文
posted @ 2020-05-06 10:57 Schwifty 阅读(160) 评论(0) 推荐(0)
摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans 阅读全文
posted @ 2020-05-06 10:37 Schwifty 阅读(122) 评论(0) 推荐(0)
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of ston 阅读全文
posted @ 2020-05-06 10:16 Schwifty 阅读(138) 评论(0) 推荐(0)