https://leetcode-cn.com/problems/decode-string/给定一个经过编码的字符串,返回它解码后的字符串。 编码规则为: k[encoded_string],表示其
Given an array A of strings made only from lowercase letters, return a list of all characters that
作为一个弱鸡小白,在进军数据分析的路上看各种资料只会越来越头大,关键是浪费时间,尤其是时间比较紧迫的时候简直要抓狂,对于我这种不想花时间筛选信息又想提高命中率的只能靠前辈了额。前辈说对于面试题刷Lee
给定一个由空格分割单词的句子 S。每个单词只包含大写或小写字母。 我们要将句子转换为 “Goat Latin”(一种类似于 猪拉丁文 - Pig Latin 的虚构语言)。 山羊拉丁文的规则如下: 如
给定一个整数数组 a,其中1 ≤ a[i] ≤ n (n为数组长度), 其中有些元素出现两次而其他元素出现一次。找到所有出现两次的元素。你可以不用到任何额外空间并在O(n)时间复杂度内解决这个问题吗
描述Given a linked list and a value x, partition it such that all nodes less than x come before nodes
给你两个数组,arr1 和 arr2, arr2 中的元素各不相同arr2 中的每个元素都出现在 arr1 中对 arr1 中的元素进行排序,使 arr1 中项的相对顺序和 arr2 中的相对顺序
描述Reverse a linked list from position m to n. Do it in-place and in one-pass.For example: Given 1-&g
You are playing the following Bulls and Cows game with your friend: You write down a numbe
Merge two sorted linked lists and return it as a n