list tag

251 questions


1 answers
147 views
0
Undo list node

We used classes and structures to mimic the listWhen you release a node, will all the things in the heap area be released if you have the code below?I copied a part of the code, but if I can't judge w...

2 years ago

1 answers
103 views
0
I'd like to break up the list elements into four pieces and approach them

You want to split four elements into a list that stores only integers.Right now, it's just i+1, i+2,... Is there any other way?It hasn't been long since I came over from C, so I keep coming up with th...


1 answers
81 views
0
Python Beginner Voting Program Project

I tried to get the number of votes, use the repetitive sentence, use the number of votes, put the symbols i, put the letters on the list, show the voting list, ask what your choice is, and show you wh...

2 years ago

1 answers
106 views
0
What is the difference between Set and List?

What is the difference between Set and List in Java?

2 years ago

1 answers
123 views
0
I'd like to sort out the list that stores sequence types

data1 = [[1,2,3], [4,5,6], [7,8,9]]data2 = [(1,2,3), (4,5,6), (7,8,9)]I'm saving lists and tuples as list elementsYou want to sort by the second item (2,5,8) in each element.In Python 3.5, the first e...

2 years ago

1 answers
44 views
0
C++ List STL's Etherator Usage

#include <iostream>#include <list>int main() { std::list<std::string&> list = {January, February, March, April, May}; std::list<std::string&>::iterator listItr = list.b...

2 years ago

1 answers
94 views
0
How do I copy the Python list?

I just put it in the sauce below, and when list1 changes, list2 changes, tooFor me, list2 should be [1,2,3] continuously. I don't want to turn the door around and copy each and every one of themPlease...

2 years ago

2 answers
43 views
0
To count specific words in a Python string list

Housing houses did housing, Is it a problem that housing houses did housing? and That house is a harmful house.We have to count the number of housesThere are 9 in totali = 0Str = Household houses did ...

2 years ago

1 answers
104 views
0
Is there a way to remove duplicate elements from the list?

We are working on a function that returns a new list that removes duplicate elements from the list.The chords I made didn't work out wellI actually don't know how to start.def remove_duplicates(): t =...

2 years ago

1 answers
44 views
0
Remove values from both lists

menu = 0words = [data, science, happy, smile, lucky, love, dream, yerterday, today, tommorrow]means = [data, science, happiness, smile, lucky, love, dream, yesterday, today, tomorrow]words_count=len(w...

2 years ago
« - 11 - »

© 2024 OneMinuteCode. All rights reserved.