Skip to main content

All Questions

Tagged with or
-5 votes
1 answer
70 views

When using large boolean arrays, like: bool[] myBools = {true, false}; the fact that "true" is 4 characters and "false" is 5 makes for a very lengthy array. It's compact in memory,...
user23492911's user avatar
4 votes
1 answer
72 views

For example, indices where arr is increasing for at least 4 values: arr = [4, 5, 6, 7, 2, 3, 4, 7, 8, 11, 2] func(arr, 4) # -> [0, 4] Is there some numpy-ish method for dealing with intervals of ...
Hugh Melee's user avatar
-3 votes
1 answer
139 views

I understand the idea of the insertion sorting algorithm, and I know how it works after watching many videos and doing research. However, I had never seen any code for it, so I tried to code it myself....
Faris Alakassi20's user avatar
1 vote
1 answer
94 views

Sub DELETE_Db_ROWS_THAT_CONTAIN_ITEMS_IN_AN_ARRAY() Dim MyArray As Variant MyArray = Array("Reinvest", "DBS", "WDL") 'Delete all rows containing these items ...
user540's user avatar
  • 11
-7 votes
0 answers
70 views

i'm stuck at the following problem: Given a array of integers find the maximum size of a group possible which satisfy the following: Each group can only contain the same integer Every group needs to ...
Flug's user avatar
  • 1
1 vote
5 answers
145 views

I would like to be able to use indices in R so that if there are no indices that meet the criteria, the data is not deleted. For example, the following code doesn't recognize that I want to keep the ...
user8229029's user avatar
  • 1,253
-10 votes
2 answers
120 views

I have an array of objects whose values are a mixture of strings and integers. I have a script that sorts the array depending on the key I send to it. It works if the value of the passed key is a ...
FA_Cup_Winner's user avatar
Best practices
0 votes
4 replies
29 views

I have a Fortran code compiled with with the following flags: -fc=ifx -O3 -r8 -i4 -fpe0 -no-ftz -fp-model=fast=2 -heap-arrays 0 -init=zero -init=arrays -I ./include/ -L ./lib/ -lfmetis -lmetis -o ...
Subject303's user avatar
0 votes
1 answer
146 views

I have a project where I want to populate the array with values from an SPI and then use this array in another source file. My Q is if I declare this array as an extern array in a header file, have it ...
Maaz Madha's user avatar
1 vote
1 answer
89 views

I am developing a simple command-line to-do list application in C as a learning exercise. The program allows adding, viewing, updating, and removing tasks, storing them in a text file. Adding and ...
lucas arcoverde's user avatar
0 votes
4 answers
160 views

I have a completely functional system for dialogue in Unity, which uses strings for the text and commands for additional functionality (example: making a sound). Each command is attached to a line, ...
Mayuuri's user avatar
2 votes
3 answers
81 views

Recently I have noticed an interesting thing when using the Observable annotation. I have a model marked with Observable, and there is an array in the model, at some point I call the removeAll on this ...
Teja Nandamuri's user avatar
2 votes
3 answers
108 views

I have a 3D numerical array X, of shape=(N,N,6); and a 2D logical array mask, of shape=(N,N). I would like to find all unique 1D subarrays (length=6, along axis=2) of X, searching over the first two ...
ImagineBaggins's user avatar
0 votes
3 answers
123 views

I want to add strings to a fixed 2D array. I have a core dumped error when executing my addToList function. The program passes the list pointer and the string to add as arguments. I then iterate ...
SolidSnake's user avatar
-1 votes
0 answers
103 views

In my Swift iOS project, I need to send an empty array as parameter in my Alamofire API request. As encoding method, I have to use: encoding: URLEncoding(arrayEncoding: .indexInBrackets) When I check ...
LinusG.'s user avatar
  • 29.4k

15 30 50 per page
1
2 3 4 5
27874