摘要:
Redis的数据类型:String List Hash Set SortedSet String set get 一个value最大512M List lpush lrange 存储读取修改用户属性 Hash hmset hget 消息队列,最新消息排行 Set sadd smembers 共同好友 阅读全文
摘要:
当队满时,(tail+1)%n=head。 public class CircularQueue { // 数组:items,数组大小:n private String[] items; private int n = 0; // head表示队头下标,tail表示队尾下标 private int 阅读全文
摘要:
package com.example.demo1; public class MyList<T> { private int count = 0; private Node<T> firstNode = null; private Node<T> lastNode = null; public N 阅读全文