摘要: Problem : Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? 阅读全文
posted @ 2020-04-22 22:59 littledy 阅读(90) 评论(0) 推荐(0)
摘要: Problem : Given a matrix which is sorted in non increasing order both row wise and column wise. Return the number of negative numbers in . Example 1: 阅读全文
posted @ 2020-04-22 13:24 littledy 阅读(177) 评论(0) 推荐(0)
摘要: Problem : Implement FreqStack, a class which simulates the operation of a stack like data structure. FreqStack has two functions: push(int x), which p 阅读全文
posted @ 2020-04-22 00:47 littledy 阅读(97) 评论(0) 推荐(0)