摘要:
新知识-Queue(FIFO) FIFO:First in First out; 队列:先进先出 入队和出队。入队会向队列追加一个新元素,而出队会删除第一个元素,一个索引来指出起点。 代码: /** ... 动态数组和指向起点的标志位*/ class MyQueue { // store eleme 阅读全文
摘要:
##力扣205题——同构字符串 ##代码 class Solution { public boolean isIsomorphic(String s, String t) { HashMap<Object,Integer> map= new HashMap(); Integer i = 0; for 阅读全文