上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: mocket 中常用操作的代码和注解对等操作 相关对等操作 code anotation note @Beforepublic void init() {MockitoAnnotations.initMocks(this);} @RunWith(MockitoJUnitRunner.class)pu 阅读全文
posted @ 2021-12-13 06:11 xiaoyongyong 阅读(232) 评论(0) 推荐(0)
摘要: 292. Nim Game You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. You and your friend will alt 阅读全文
posted @ 2021-12-10 10:52 xiaoyongyong 阅读(104) 评论(0) 推荐(0)
摘要: 55. Jump Game Medium You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array repre 阅读全文
posted @ 2021-12-09 11:26 xiaoyongyong 阅读(61) 评论(0) 推荐(0)
摘要: redis 安装: brew install redis 启动redis: /usr/local/opt/redis/bin/redis-server /usr/local/etc/redis.conf 进入redis: redis-cli String 127.0.0.1:6379> 127.0. 阅读全文
posted @ 2021-12-06 05:35 xiaoyongyong 阅读(35) 评论(0) 推荐(0)
摘要: 1.简单的加减问题,比如:1+2-3=0 1+2-3 可以看作 +1+2-3 , 那么我们可以逐个把这些数字放到stack,最后加起来 class Solution { public int calculate(String s) { Stack<Integer> stack = new Stack 阅读全文
posted @ 2021-12-05 03:48 xiaoyongyong 阅读(138) 评论(0) 推荐(0)
摘要: 203. Remove Linked List Elements Easy Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == 阅读全文
posted @ 2021-11-29 01:16 xiaoyongyong 阅读(137) 评论(0) 推荐(0)
摘要: 206. Reverse Linked List Easy 9329166Add to ListShare Given the head of a singly linked list, reverse the list, and return the reversed list. Example 阅读全文
posted @ 2021-11-24 11:46 xiaoyongyong 阅读(39) 评论(0) 推荐(0)
摘要: 206. Reverse Linked List Easy Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3, 阅读全文
posted @ 2021-11-24 11:46 xiaoyongyong 阅读(48) 评论(0) 推荐(0)
摘要: 1254. Number of Closed Islands Medium Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4-directionally connected group of  阅读全文
posted @ 2021-11-22 09:18 xiaoyongyong 阅读(70) 评论(0) 推荐(0)
摘要: 547. Number of Provinces Medium There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and c 阅读全文
posted @ 2021-11-21 03:11 xiaoyongyong 阅读(70) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页