Skip to main content
1 vote
2 answers
73 views

Is there a bug in the method below (Data Structures & Algorithms by Robert Lafore)

The method below has been taken from the book Data Structures & Algorithms by Robert Lafore. This method is used to bubble sort a given array. nElems is the number of elements in the array. In my ...
Azer Shukurzade's user avatar
0 votes
1 answer
36 views

Using embedded youtube playlist index to cycle through array

I have a youtube playlist embedded in an iframe and was hoping to use the playlist index to cycle through an array of titles on-screen (i.e. when the next video starts playing, the next item in the ...
alaska22's user avatar
-2 votes
0 answers
68 views

An array of classes in a class C# [duplicate]

I tried to create a class with three fields and then use it in another class as an array. class Program { public class Data_Zkl_Kom { float ZN { get; set; } int Time { get; set;...
Oleg's user avatar
  • 15
-2 votes
1 answer
111 views

The algorithm to create the target array from an array of randomly inputted characters [closed]

I've been working on a function that takes a string of random characters as parameter (char *scrap) and forms a meaningful sentence or a name out of it by matching it with letters from another string (...
Mehmet emi Sevim's user avatar
-1 votes
0 answers
33 views

How to combine IN and CONTAINS?

I'm trying to create a predicate for my app which uses Realm to get some specific data. The predicate should just getting objects which have a string in an array, but the string don't has to match ...
Fabian Müller's user avatar
0 votes
0 answers
26 views

Badge 3: Data Application Builders HASH(ingredients) returning NULL or unexpected values in Snowflake even though ingredients is defined as an ARRAY? [closed]

I’ve been working on a Snowflake + Streamlit integration project for a week, and I’m stuck with a persistent issue involving NULL or incorrect hash values when running Snowflake’s DORA grader (lab ...
Anil kilari's user avatar
1 vote
0 answers
135 views

C# array[i] where i is IBinaryInteger<T>?

A BinaryInteger<T> is an integer of some bit-length. I'd like to use it to index an array. Casting to an int isn't possible - I have to use int.CreateTruncating(i) (or similar) at run-time to ...
n8wrl's user avatar
  • 19.8k
0 votes
0 answers
108 views

Can't pipeline array with one element [closed]

I have some code whose output is not entirely clear to me: $session=New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri exchange.domain.local/Powershell -Authentication kerberos Import-...
Posix's user avatar
  • 23
0 votes
1 answer
82 views

The threeSumClosest algorithm does not return the expected closest sum [closed]

I'm solving the 3Sum Closest problem in LeetCode, where I need to find the sum of three numbers in a list that is as close as possible to a target value, in this case, target. This is my code: class ...
Jared McCarthy's user avatar
-4 votes
0 answers
54 views

Why if else operator does work incorrect or smth another? [closed]

I've write automatic switch for active menu item on page scroll used IntersectionObserver() But it don't worked correct with different window height. I decided to add "if else" which will ...
Егор Белоус's user avatar
-2 votes
0 answers
67 views

why do my forEach results change every time the page loads [duplicate]

I want to dynamically create list elements. I used forEach and I console logged the ul but the results aren't consistent in the console when I reload the page. They are consistent in the UI. But in ...
BizzyBee's user avatar
3 votes
1 answer
110 views

Powershell captures array function result with single element as just the element

I'm working on some code that still needs Powershell 5, and I'm making use of some .NET tools, including [System.BitConverter]::GetBytes(). This function always returns a byte array... it has to, as ....
Joel Coehoorn's user avatar
0 votes
2 answers
143 views

C++: std::array invalid array assignment [duplicate]

I have the below code. What am I doing wrong that I can't simple assign the array myBar to the 1st index of foo? Using memcpy works but somehow I don't want to use this approach. #include <array>...
Peter VARGA's user avatar
  • 5,299
0 votes
0 answers
38 views

Edit API Response in PHP [duplicate]

I'll try to be as clear as possible given the complexity of my request. I have an e-commerce site where I'm importing products via the API provided by the supplier. I'm using two plugins to do so; the ...
Fabio Mulè's user avatar
0 votes
1 answer
49 views

MongoDB query with Mongoose - Matching subdocument attribute within an array

I am trying to solve an issue with the format of documents in a MongoDB depicted below. { "_id": { "$oid": "68dc4f78e11553b3647231e2" }, "name": "...
Cade Bray's user avatar
  • 101

15 30 50 per page
1
2 3 4 5
27880