Loading...
给你两个字符串 s1 和 s2 ,写一个函数来判断 s2 是否包含 s1 的排列。如果是,返回 true...
背景:因为JavaScript运行是单线程的,但是可以利用异步的promise去同时发出多个网络请求,但是一次过多的请求就会造成服务器压力或者其他复杂逻辑...
给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。来源:力扣(LeetCode)链接:h...
给定一个头结点为 head 的非空单链表,返回链表的中间结点。如果有两个中间结点,则返回第二个中间结点。...
猜数字游戏的规则如下:每轮游戏,我都会从 1 到 n 随机选择一个数字。 请你猜选出的是哪个数字。如果你...