scanf( )函数和gets( )函数都可用于输入字符串,但在功能上有区别。若想从键盘上输入字符串"hi hello",则应该使用gets函数。 gets可以接收空格;而s...
scanf( )函数和gets( )函数都可用于输入字符串,但在功能上有区别。若想从键盘上输入字符串"hi hello",则应该使用gets函数。 gets可以接收空格;而s...
题目一 有这样一道智力题:“某商店规定:三个空汽水瓶可以换一瓶汽水。小张手上有十个空汽水瓶,她最多可以换多少瓶汽水喝?”答案是5瓶,方法如下:先用9个空瓶子换3瓶汽水,喝掉3...
DescriptionGiven an array and a value, remove all instances of that value in place and ...
DescriptionThere are two sorted arrays nums1 and nums2 of size m and n respectively. Fi...
DescriptionGiven an array of integers, return indices of the two numbers such that they...
DescriptionGiven a string, find the length of the longest substring without repeating c...
DescriptionGiven a string and an integer k, you need to reverse the first k characters ...
Description Write a function that takes a string as input and reverse only the vowels o...
LeetCode-344. Reverse String DescriptionWrite a function that takes a string as input a...
DescriptionGiven a group of two strings, you need to find the longest uncommon subseque...
DescriptionYou are given a string representing an attendance record for a student. The ...
Description Given a string, determine if it is a palindrome, considering only alphanume...
二级指针与二维数组 char *string[] ={"abc","abcd","acf"};char string[3][4]={"abc","abcd","acf"}...
DescriptionGiven a non-empty string check if it can be constructed by taking a substrin...
DescriptionCount the number of segments in a string, where a segment is defined to be a...
字符指针 定义及初始化:char *strs="Hello,world!" 字符串中的所有字符在内存中是连续排列的,strs指向的是字符串的第0个字符(从零开始);我们通常将...
问题描述Given an arbitrary ransom note string and another string containing letters from al...
问题描述Given a string, you need to reverse the order of characters in each word within a s...
问题描述 Given two binary strings, return their sum (also a binary string).For example,a = ...