Results for list
Yes, the question was confusing. The problem is: I have a list of strings (let's call it list1) ["abc","acd","df"] and another list of prefixes of var...
I am learning linked lists and was doing a question which asks you to reverse a doubly linked list. My code works perfectly fine but I don't understan...
I'm trying to capture the data of a CheckBox form by storing the Booleans as an array using a simple "For Each" loop. No matter what variation on the ...
I'm using Ant-Design uploader/dragger in my reactjs project, I want to upload files after push the button, so I used customRequest, everything works g...
Let's say I have a list where each element depends on the two previous elements eg. Fibonacci: fibonacci = [0,1,1,2,3,5,8,13,21] I want to create such...
Public Function test232() test232 = inStr(String1:="hello", String2:=":") End Function I am getting the error: "Compile error: list separator exp...
I've decided to learn Javascript and after watching a few tutorials, I'm training by doing challenges. One of the iconic challenge is doing a to do li...
I would like to repeat a list N times but without repeating an item itself. For example, from itertools import * items = [ _ for _ in range(3)] # rep...
How to find common elements in nested list, please suggest better solution. q)list2:((12 18 23 25 45); (7 12 18 24 28); (1 5 8 12 15 16 18)) q){ (x 0)...
I would like to create a list object to contain specific ID numbers ? How to write the code below more efficient ? many thanks in advance. #"Added Con...
I have a list in the form of ['RGT = (HDG, QJV)', 'QDM = (GPB, SXG)', 'DJN = (TQD, BQN)', 'QGG = (GGS, PTC)'..] How can I turn it into a dictionary si...
I am beginner to Python and Pandas The following is a part of my pandas dataframe. I want to extract all the dates in the INTERVAL_DATETIME column. L...
I am trying to sort a list using a custom function. If the function has only one parameter, it is fine. I don't know how to do if the function has 2 p...
I have a following code: for(i in 1:length(hh_temp)){ hh_temp_save = hh_temp[[i]] for(j in 4:nrow(hh_temp_save)){ hh_temp_save$max_min_sum_5da...
I have a bash script which has 4 elements, and I want to loop over the last 2. So I tried this: #!/usr/bin/env bash arg1=$1 arg2=$2 arg3=$3 arg4=$4 li...
I am making a post request to an API which consumes the below format (a list of lists). var data = "{\"Coord\" : [[50.452603, 30.522025],[30.621929, 3...
is it possible to search and replace the following (source) list of dictionaries: - k: aaa v: 1 - k: bbb v: 2 - k: bbb v: 3 v2: should be kept...
In my TCL script I am passing an empty list as argument to a proc. Inside the proc, I am adding values to the list. But outside of that proc, the valu...
I have to write the following haskell function: It receives an Integer (let's call it h) and a list of Integers as parameters. It should iterate thro...
I need help to grep Alphanumeric [[:alnum:]] & Special Characters [[:punct:]] from wordlist without any other characters. for example, this is the lis...
I have a test that asserts at the end the length of 2 fields (list) of object under test. The test is green if run from IntelliJ (either test class or...
I am trying to create a named list in R where the contents of each named list element is a character vector of two values. What I have is like this: l...
I tried many methods to get single dataframe instead of multiple dataframes while converting list of separate dictionaries to dataframe it is creating...
With all the posts out there about Moshi and people's confusion (including my own) about how to parse a list, I can't believe that this is this diffic...
I have this code that allows me to create a JSON file from a list, creates the list, checks that the elements don't repeat, and then creates the JSON ...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?