随笔分类 - leetCode题解记录
摘要:1、题目描述 Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if t
阅读全文
摘要:1、题目描述 You are given a string representing an attendance record for a student. The record only contains the following three characters: A student coul
阅读全文
摘要:1、题目描述 Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Example 2:
阅读全文
摘要:1、题目描述 Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "leetcode" re
阅读全文
摘要:1、题目描述 X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be
阅读全文
摘要:1、问题描述 Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when
阅读全文
摘要:1、题目描述 Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word o
阅读全文
摘要:1、题目描述 Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to
阅读全文

浙公网安备 33010602011771号