iteration tag

6 questions


1 answers
142 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?

1 years ago

1 answers
167 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?

1 years ago

1 answers
100 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
142 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
76 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?

1 years ago

1 answers
107 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

1 years ago

© 2024 OneMinuteCode. All rights reserved.