Home > Back-end > YanWeiMin data structure algorithm 4.2 there is a place to S1 [0] is don't know why ah?
YanWeiMin data structure algorithm 4.2 there is a place to S1 [0] is don't know why ah?
Time:12-26
Cross the red line where S1 [0] is why? Should not be S2 [0]? This is the list of S2 data replication ah
CodePudding user response:
S1 [0] is the first one to the length of the string, T the first character to the first S [0] characters, endowed with S1 data, so T [S1 [0] + [2]] S place S2 data
CodePudding user response:
Such as S1=3 "ABC" S2=4 "1234" The red lines on one word after the execution T=?" ABC " Then from the beginning of the S1 [0] + 1, namely to 4 S [0] + S2 [0], which is 7, the four position, place the "1234"