I have a JSON array of objects that I'm trying to convert to YAML. {"AAPL": [ { "shares": -75.088, "date": "11/27/2015" }, { "shares": 75.08
Quick question. Anyone know how to render an array of components? Trying to make it easier for a developer to alter a particular component. (It's like a dashboa
I am trying to hook into this method in NotificationManagerService using Xposed: void enqueueNotificationInternal(final String pkg, final String opPkg, final i
I have a awkward need but I need to interleave an array with another array before imploding the result. I guess my better option would be less talk more example
I have been getting the: "VirtualizedList: missing keys for items, make sure to specify a key property on an item or provide a custom keyExtractor" pretty c
I am trying to write a class that takes a phone number that the user inputs as a string, then stores each digit in an array. I converted the string to a long us
Im trying to sort an array in ascending order and print it out and Im having trouble of where to put my cout in my code. for (int k=0; k<ARRAY_SIZE; k++) {
I'm trying to solve the problem below from CodeFights. I left my answer in Java after the question. The code works for all the problems, except the last one. Ti
I have a 2D array called char **str (allocated by malloc). Lets say str[0] has the string "hello". How would I print that hex? I tried printf("%d\n", (unsigned
I'm using ajax to submit a multipart form with array, text fields and files. I append each VAR to the main data as so var attachments = document.getElementByI
I have created a multidimensional array in JavaScript and I want to find the exact index of specific value. That value will be user input. var array = []; var k
There's an array say [1,2,4,5,1]. I need to print all the contiguous sub-arrays from this. Input: [1,2,4,5,1] Output: 1 1,2 1,2,4 1,2,4,5 1,2,4,5,1 2
I'd like to copy a numpy 2D array into a third dimension. For example, given the 2D numpy array: import numpy as np arr = np.array([[1, 2], [1, 2]]) # arr.shap
Here is the question: Write a solution that only iterates over the string once and uses O(1) additional memory, since this is what you would be asked to do duri
I already know that apply and call are similar functions which set this (context of a function). The difference is with the way we send the arguments (manual vs
I have a simple array. The array length always has a square root of an integer. So 16, 25, 36 etc. $array = array('1', '2', '3', '4' ... '25'); What I do, is
I have a simple array. The array length always has a square root of an integer. So 16, 25, 36 etc. $array = array('1', '2', '3', '4' ... '25'); What I do, is
I am trying to output the names and corresponding scores in descending order. Having an array of strings and another array of integers, I am trying to relate th
Given an array of integers, I need to return a new array containing the middle element(s) from the original array. Specifically, the result will have one elemen
I need help to assign keys to an array in PHP. My code is: //First I make an array of a csv file $file="C:\path-to-csv\file.csv"; $csv= file