iteration tag

6 questions


1 answers
155 views
0
Is there a way to access each object more efficiently when writing a data structure map?

I'd like to check all the mapped pairs by rotating the repeat statement. What's the most efficient way?And does the order of the objects change depending on the map implementation?

2 years ago

1 answers
183 views
0
What do you do with HashMap when you turn the repeat door?

You want to check the data of an object in HashMap How do I turn the repeat statement on HashMap?

2 years ago

1 answers
105 views
0
What is the best way to repeat a string in Java?

Is there any other way to change the string to char[] by turning the repetitive statement instead of StringTokenizer?


1 answers
155 views
0
Which one should I use to sort vectors in descending order?

Please explain which one to use when sorting vectors in descending order, which one do you prefer?std::sort(numbers.begin(), numbers.end(), std::greater<int>());std::sort(numbers.rbegin(), numbe...


1 answers
85 views
0
Please tell me how to eterate the string

In C++, when approaching a string alphabetically for (int i = 0; i < str.length(); ++i) std::cout << str[i] << std::endl;I did it like this. What do I do with Python?

2 years ago

1 answers
117 views
0
How to remove a list item with an eater

Go to for in the list where you save the tuple I'm going to remove it if it meets certain conditionsI don't know how to remove the tuple.for tup in somelist: If condition (tup): #Remove the tuple

2 years ago

© 2024 OneMinuteCode. All rights reserved.