I want to remove an element after creating the below 2d array.And it should be the last element of the array. ...
I want to remove an element after creating the below 2d array.And it should be the last element of the array. ...
I am trying to remove characters of comments(/* */) from the String s, but I am not sure how I extract them, especially, from the second comment. This ...
I am programming a priority queue, and I am getting an error: free(): double free detected in tcache 2 I know that problem is in the PriorityQu ...
I have the following code: tree = {'nodes':[1,2,3],'root':[1]} nodes = tree['nodes'] nodes.remove(2) print(tree['nodes']) print(nodes) The output i ...
I have a file with 76 columns, out of which 52 columns are irrelevant and should be removed based on their column headers (i.e. string of names). Open ...
I have some problems when implementing a remove(int index) method that is supposed to remove an element at a specified index in a list. My first probl ...
I am trying to remove a string from a BST and I cannot figure it out. I know how to remove integers but cannot convert my code to remove Nodes that ha ...
I am implementing a cyclic DoublyLinkedList data structure. Like a singly linked list, nodes in a doubly linked list have a reference to the next node ...
(Using Python 3) Given this list named numList: [1,1,2,2,3,3,3,4]. I want to remove exactly one instance of “1” and “3” from numList. In other words, ...
I am doing a menu driven program in python to insert and delete items in a list. I have a list containing integers and strings. I want to delete integ ...
Here's how my code looks like: Unfortunately, this seem to not work and no matter how I shift around the lines of codes, I kept getting: May I g ...
I have got a data frame like this: ID A B 1 x5.11 2,34 2 x5.57 5,36 3 x6,13 0,45 I would like to remove the 'x' of all values of the column A. How m ...
How can I define the -last vowel- in a string? For example, I have a word "classic" I want to find that the last vowel of the word "classsic" is the ...
Write a method called get which will return an element from the given index. Returns -1 if the index is out-of-bounds. Write a method called remove ...
I have a "language switcher" on a Drupal 7 site. When some special conditions are true, I want to remove the russian flag. It seems to work, bec ...
This is prob a quite weird or simple error. But it's doing my head in lol. The code below is a click event handler aimed at 2 <img> elements. Yo ...
Title says it all, I'm having some trouble iterating through an arraylist I've made (songs) and removing a specific song once it's been found. I've co ...
I have an arraylist that looks like: It is filled with these elements: Now i want to remove the "1" from the second index so my wanted output is ...
I understand the algorithms but I am not sure how to put it into actual codes. Please help! And also please explain in details. I really want to under ...
Welcome, i am programming a simple RPG game in java applet. It is getting more and more complicated and many errors are thrown to my face. Today i hav ...