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