reverse tag

4 questions


1 answers
89 views
0
How do I reverse a C/C++ string using only one buffer?

I know how to use two buffersHow do I reverse a C/C++ string using only one buffer?for(int i=0; i<strlen(s1); i++) s2[strlen(s1)-i-1] = s1[i];

2 years ago

1 answers
122 views
0
c++ linked list deduplication, reverse question.

Source to clear if a simple link list has duplicate data.IsEmpty() is a boolean function that asks if the list is zeroLength() is a function that checks the length of the list.The Delete (int Position...


1 answers
88 views
0
Please tell me how to approach the list from the back to the front

array = [0,10,20,40]I'd like to approach from the back in order of 40->20->10->0.In C++,for (i = array.length() - 1 ;i >= 0; i--)We wrote it togetherWhile writing fori in list on Python,Is...

2 years ago

1 answers
132 views
0
I have a question about reverse().

phone_number='01033334444'phone_number=list(phone_number)phone_number=phone_number.reverse()print(phone_number)I want to use reverse to solve problems in other places besides thisNone is output every ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.