Questions tagged [sorting]
Sorting is the process of applying some order to a collection of items.
sorting
77,135
questions
0
votes
1
answer
39
views
C++ Rectangle 2D Array with numbers beside the rectangle
I've been trying to make a 2D array of rectangle, and i want the number of index x to printed beside the rectangle and index y to be printed below the rectangle..
Here is my code..
int height, width;
...
-6
votes
0
answers
22
views
How to get and sort a string from an array in javascript? [closed]
I have this array with this string:
['MEX-CUN'] ['MEX-MTY']
and I would like a result similar to this:
CUNMEX
MEXMTY
Is it possible to perform this action?
0
votes
1
answer
14
views
What will cause the rows increase of the sort operation to in execution
I want to create some aggregations of table. But when I look at execution plan I find out that there is massive row increase in sort (from 5 121 to 1 453 235 569). Why this is happend? What can cause ...
1
vote
1
answer
43
views
Finding the subsequence with the least median given a size K and an array of length N
I have been struggling the past month with this problem that was given to us on our course while I was upsolving it. The task is to find the window of size K with the least median in an array of ...
0
votes
1
answer
43
views
Excel: sort an array by an ordered list, without custom list
I have a table of post codes, with the amount of shipments being sent to each postcode.
I want to sort this array by post code in a specific order, which I have in a second list.
I do not wish to sort ...
0
votes
2
answers
50
views
How do I make elements show during an operation instead of after?
I am making a sorting algorithm visualizer using JavaScript. I have most of it down, but currently, the bars do not show up until the sorting is done, and at this point, it does show up sorted.
...
3
votes
5
answers
71
views
Order columns based on suffix with dplyr and stringr
I have a dataframe that has columns that are separated out by suffix see ex_df. Each time I run the code there may be varying column amounts based on database entries so I am trying to find a way to ...
0
votes
1
answer
25
views
Relocating a column in a dataframe in Python
I was wondering if there was an easy way to relocate a single column in a dataframe with pandas that could emulate the dplyr function (in R) 'relocate'. Since I didn't find anything too close to that ...
-4
votes
0
answers
50
views
stack data structure in C [closed]
What is the best way to create a stack data structure in C, with array or with linked list(and if your answer is with linked list, please make it clear why), thankss
I'm doing my 42 school project, ...
0
votes
0
answers
31
views
VBA Sort horizontally on current selection
I have to order and sort several workbooks of different column lengths and row amounts. I would like the script to be dynamic in the selection. The starting point will always be the same C1. The ...
1
vote
1
answer
45
views
Filter multideminsional array in PHP so that if certain values are duplicated in sub-arrays the redundant ones are unset [closed]
In an application, redundant but non-identical arrays are being returned. I'd like to remove the redundant arrays from the multidimensional array. Though the issue could possibly be solved closer to ...
1
vote
1
answer
46
views
Parsing csv file output before certain date
I am trying to sort and parse lines in a csv file. So far I have been able to sort the date column. Assuming I can use sort to filter from a certain date - but all the info I find deals with different ...
1
vote
2
answers
69
views
How to sort an array by only being able to swap an element with another element two positions ahead (i+2)?
I have an array of integers that I need to sort. However, the only operation allowed is to swap an element at index i with the element at index i+2. This means traditional sorting algorithms like ...
0
votes
2
answers
52
views
Is there a way to sort out alphanumeric codes in Excel from a string with zero uniformity?
So I have a list of parts that have been ordered for the maintenance crew at my job. There is almost zero uniformity across different records. Some are just a string of 6 numbers, others have letters, ...
1
vote
1
answer
15
views
Return Top value plus ties for each change in another Column value
Using Columns A to J, I am looking to return the answer in Columns L to N.
I am trying to get the maximum value (plus ties) of Column B for each Tier (Column A) and show the corresponding fixture (...