scanf( )函數(shù)和gets( )函數(shù)都可用于輸入字符串,但在功能上有區(qū)別。若想從鍵盤上輸入字符串"hi hello",則應(yīng)該使用gets函數(shù)...
題目一 有這樣一道智力題:“某商店規(guī)定:三個空汽水瓶可以換一瓶汽水。小張手上有十個空汽水瓶,她最多可以換多少瓶汽水喝?”答案是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...