Skip to main content
0 votes
2 answers
48 views

time { < <(seq 0 20000) readarray -t array ; } takes on my computer: 0.309s. But... time { < <(seq 0 20000|sort) readarray -t array; } takes only: 0.074s Sorting should add time ...
programmer'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
-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
Advice
0 votes
2 replies
37 views

i am learning about big o notation and need a little bit of clarity before i diverge into the wrong path. my understanding is o() is suppose to represent the time it takes for a program to do a task ...
booboobearboy283's user avatar
2 votes
0 answers
48 views

I've been implementing radix sort for SPH simulation use for some time now, and initially I've had increased to to use 4 bits radix and make it 16 way radix sort which I haven't seen documented too ...
harism's user avatar
  • 6,113
0 votes
0 answers
47 views

the code is working properly when i fetch normal data or try to fetch data based on condtions like less then or greater then all these are working properly but when i try to sort the data that is not ...
Prince SaiNi's user avatar
Advice
0 votes
9 replies
51 views

In the Java file browser I’m working on, I’m running two components at the same time: a JTable and a JList. Both refer to the same file list, and I'd like both to be sorted the same way -- ideally by ...
mstoreysmith's user avatar
3 votes
2 answers
163 views

A 1-d array of ints sorts correctly. An array of arrays of ints does not sort as ints; it sorts as strings. (10,1,2) | Sort-Object This works and is sorted as ints: 1 2 10 But consider this code: $...
john v kumpf's user avatar
3 votes
3 answers
169 views

So, I decided to make an algorithm with some linear and binary search where you have a 2D array like Array [,] = {{5,2}, {0,3}, {1,2}, {3,2}} and it finds the certain subarray for example like {5,2}. ...
ripe_onions's user avatar
1 vote
0 answers
95 views

I own a website that sells rare clothing products sourced from all around the country. Because no item that we buy is ever in the same condition, we create a different listing for each item with ...
MetroCity's user avatar
0 votes
1 answer
84 views

I am working with a Pandas DataFrame containing student data (GRE scores, TOEFL scores, etc.). I need to sort this DataFrame based on a specific column, but the column name is provided by the user as ...
Ankit Verma's user avatar
1 vote
1 answer
79 views

I'm working with an Angular Material table (mat-table) that has sorting enabled via matSort. Sorting works perfectly when I click on the column headers (mat-sort-header). Now, I want to trigger the ...
Dung Tran's user avatar
Advice
1 vote
8 replies
146 views

Found this code exercise on W3R. Been trying to figure out the relationship between the outer and inner loop (i and j), but can't seem to wrap my head around it. If anyone could walk me through this ...
Stanislav Matveyevich's user avatar
4 votes
3 answers
226 views

I am trying to count word frequencies in a text and then sort them in descending order of frequency. So if two words have the same frequency, they should remain in the same order they first appeared ...
Rishabh Kumar's user avatar
Best practices
1 vote
0 replies
35 views

The current version of universe programming language I working on does not cater for SORT function. For certain application , there a need read from a record file which contains over 100 items ...
chuackt's user avatar
  • 175

15 30 50 per page
1
2 3 4 5
5195