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"

CodePudding user response:

reference 1/f, the truth is right or wrong 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
are still a little don't understand, T the first character to the first S [0] characters, endowed with S1 data, so T [S1 [0] + [2]] S place S2 data, if so, why the front plus a S1 [0] ah, S1 [0] is not on the first string long back? Should not be 1 first... S1 [0], [0] S1 again?

CodePudding user response:

Haven't seen such a wonderful work of the imagination,
In C style, said here.. Ellipsis is the lowest priority, the plus sign on both sides of the higher than its priority, you must first understand the plus sign, on both sides of the then put their own and as upper and lower of ellipsis, OK?

CodePudding user response:

S [0] the length of the store, he

reference C2S2D2Nshishabi reply: 3/f
Quote: reference 1/f, the truth is right or wrong 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
are still a little don't understand, T the first character to the first S [0] characters, endowed with S1 data, so T [S1 [0] + [2]] S place S2 data, if so, why the front plus a S1 [0] ah, S1 [0] is not on the first string long back? Should not be 1 first... S1 [0], [0] S1 again?

CodePudding user response:

The location of the red line can feel from the original poster picture,
At that time, the original poster uneasy mood, anxiously guessing, with a string why is combined with two integers?

Ask a guest to stay day on rainy days leave I leave?
  • Related