摘要: Implement the class ProductOfNumbers that supports two methods: 1. add(int num) Adds the number num to the back of the current list of numbers. 2. get 阅读全文
posted @ 2020-02-18 13:38 Schwifty 阅读(200) 评论(0) 推荐(0)
摘要: Given a m * n matrix grid which is sorted in non-increasing order both row-wise and column-wise. Return the number of negative numbers in grid. Exampl 阅读全文
posted @ 2020-02-18 11:45 Schwifty 阅读(247) 评论(0) 推荐(0)
摘要: Given two equal-size strings s and t. In one step you can choose any character of t and replace it with another character. Return the minimum number o 阅读全文
posted @ 2020-02-18 10:44 Schwifty 阅读(502) 评论(0) 推荐(0)
摘要: Given an array arr of integers, check if there exists two integers N and M such that N is the double of M ( i.e. N = 2 * M). More formally check if th 阅读全文
posted @ 2020-02-18 10:18 Schwifty 阅读(304) 评论(0) 推荐(0)