上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 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 阅读(31) 评论(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 阅读(129) 评论(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 阅读(131) 评论(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 阅读(34) 评论(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 阅读(44) 评论(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 阅读(65) 评论(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 阅读(59) 评论(0) 推荐(0)
摘要: 208. Implement Trie (Prefix Tree) Medium A trie (pronounced as "try") or prefix tree is a tree data structure used to efficiently store and retrieve k 阅读全文
posted @ 2021-11-21 00:35 xiaoyongyong 阅读(126) 评论(0) 推荐(0)
摘要: 239. Sliding Window Maximum Hard You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of th 阅读全文
posted @ 2021-11-10 09:50 xiaoyongyong 阅读(71) 评论(0) 推荐(0)
摘要: 496. Next Greater Element I The next greater element of some element x in an array is the first greater element that is to the right of x in the same 阅读全文
posted @ 2021-11-05 11:59 xiaoyongyong 阅读(94) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页