scanf( )函数和gets( )函数都可用于输入字符串,但在功能上有区别。若想从键盘上输入字符串"hi hello",则应该使用gets函数...
题目一 有这样一道智力题:“某商店规定:三个空汽水瓶可以换一瓶汽水。小张手上有十个空汽水瓶,她最多可以换多少瓶汽水喝?”答案是5瓶,方法如下:先...
DescriptionGiven an array and a value, remove all instances of that valu...
DescriptionThere are two sorted arrays nums1 and nums2 of size m and n r...
DescriptionGiven an array of integers, return indices of the two numbers...
DescriptionGiven a string, find the length of the longest substring with...
DescriptionGiven a string and an integer k, you need to reverse the firs...
Description Write a function that takes a string as input and reverse on...
LeetCode-344. Reverse String DescriptionWrite a function that takes a st...