Member Avatar
Let assume that ‘k’ is an integer that indicate and reveals exactly the length of subset that sum to 0. Thus length of subset to pick is determined by ‘k’. If I would like to pick only ‘k’ distinct set of integers from any given set of integers in polynomial …
by claptus in Computer Science ()
Member Avatar
Hi, I hope you can help me out of this because i really dont understand how to fix this code anymore, i tried and tried and it don't work. When i debug this code in Microsoft Visual Express 2010, it says the following erros are: ... ** The code of …
by khaled02 in Computer Science ()
Member Avatar
Part 2 of exploring/tasting the Swift language takes a look at dictionaries; process flow controls like loops, if/else and switch/case; functions and sorting. I hope I can follow this up with part 3, a closer look at class operations.
by vegaseat 1,720 in Computer Science ()
Member Avatar
The bubble sort is slow and I thought it would be interesting to visualize the progress as it sorts an array of integers.
by vegaseat 1,720 in Software Development ()
Member Avatar
A little experiment with custom sorting the result of a word frequency count using Google's Go language.
by vegaseat 1,720 in Computer Science ()
Member Avatar
I have DatagridView on form. I have bind it to the database. My database has three fields. - userId (bigint) - userName (varchar) - userDob (date) Now, on Form I have comboBox, which lists Months (Jan, Feb, March and so on...). I want my program to work like this. If …
by Amiet_1 in Software Development ()
Member Avatar
This is supposed to used quick sort using the header "arrayListType.h using quick sort but I'm not sure on how to do it. Can I please get some help? ... "arrayListType.h" ...
by Hector_2 in Software Development ()
Member Avatar
Use Google's Go language to convert a denary number (base 10) to a roman numeral. Just a good exercise to explore Go's map, slice, sort and for loop features.
by vegaseat 1,720 in Computer Science ()
Member Avatar
Here is the code for Insertion Sort, Bubble Sort and Selection Sort Insertion Sort include <stdio.h> main() { int i,j,key; int a[5]={5,2,3,4,1}; for(i=1;i<5;i++) { key=a[i]; while(i>0 && a[i-1]>key) { j=a[i]; a[i]=a[i-1]; a[i-1]=j; --i; } } int k; for(k=0;k<5;k++) {printf("%d ", a[k]);} printf("\n"); } Bubble Sort include <stdio.h> main() { int …
by Anil2447 in Software Development ()
Member Avatar
I have been trying to create a program which the teacher log in to view the scores of a test of a school class. The scores are stored in a text file like this: ... As you can see there are multiple scores for each student, I need to be …
by psvmr in Software Development ()
Member Avatar
Hello, for a school assignment I was supposed to write an insertion sort algorithm for a doubly linked list. As the feedback system of this particular course is rather weak (actually non-existent) I would like to ask you for your honest opinion about how well this is implemented, what could …
by marcelmarcelmarcelmarcelmarcelmarcelmarcelmarcel in Software Development ()
Member Avatar
I'm new at C++ ..and I dont know what should I do whith my program ... this program's input for exg. is: 5 mary sara kimi lili olive : : and then sorting them .. but my problem is that when I submit my home work they score me "0" …
by rayhaneh in Software Development ()
Member Avatar
Dear all, I need the code for counting sort algorithm but I try this code but is not working ...
by Diellza in Software Development ()
Member Avatar
I want to make this code with random numebr array and time executation? Does anybady nows how can I do? ...
by Diellza in Software Development ()
Member Avatar
I want to do one example of Radix sort generating random numbers and timing. Can anybady help me? Here is the radix pseudocode ...
by Diellza in Software Development ()
Member Avatar
Hello All, I want to write a c++ code to sort a queue with the help of another queue and a non array element. Please help me getting the code.
by Sunil_12 in Software Development ()
Member Avatar
Hey Guys, Was wondering if anyone could help me with this sort function for a vector of struct type. What i'm aiming to do is to make a score board being based on a player's score and print out the scores (along with the name) in descending order. I've looked …
by Tycellent in Software Development ()
Member Avatar
Hi, I have a 3-column data (below) from excel file. How can I write a perl code to sort all rows according to the first numeric number of a numeric interval and the word "complement" if they appear before the numeric interval as shown in the expeceted output below? Data: …
by perly in Software Development ()
Member Avatar
I'm supposed to create a program to sort a names.dat file. It compiles but nothing is displayed.
by phony in Software Development ()
Member Avatar
I am trying to get my head around the functions etc in xslt with xml. I have made a dummy xml file and what I wish to do is manipulate the reader's data to get different output. For example, sort all the young readers, find the highest and see which …
by george08.08 in Software Development ()
Member Avatar
//can somene please explain what is going on. I hardly understand this code.
by Praveen_10 4 in Software Development ()
Member Avatar
Is there a way to sort a vector with a class that has an int variable? I want to have my vector sorted and printed in console. I want to be able to sort the vectors. Say i create a bunch of vectors here on user input Basically if i …
by mystycs in Software Development ()
Member Avatar
I'm trying to create a sorted linked list without using Collections. I don't want to use Collections since I'd like to learn how to work with Linked List manually. I'm getting NullPointer exception when I'm comparing strings and comparison <0. Any suggestions and help are appreciated. This is the part …
by michelle.trinsky in Software Development ()
Member Avatar
I can't get the code to display in an ordered list.
by Hector_2 in Software Development ()
Member Avatar
I have a dictionary dict1={'18':['4000','1234'],'12':['7000','4821','187','1860','123','9000']} I want to sort the keys and values such that, the output is, dict1={'12':['123','187','1860','4821','7000','9000'],'18':['1234','4000']} I tried something! but it didn work &gt;&gt;&gt; for values in dict1: ... dict1[values].sort() ... &gt;&gt;&gt; dict1 {'18': ['1234', '4000'], '12': ['123', '1860', '187', '4821', '7000', '9000']} Full sorting happens for …
by knan in Software Development ()
Member Avatar
I am trying to order by date DESC some events read from a CSV and print out them. The CSV file has to be read until it reaches the end and then order by date DESC only the entries in the following categories: champions and euro. This is the code …
by Thevenin in Web Development ()
Member Avatar
Hello, as it can be inferred from profile, I am new. I have read the community guidelines and I have done prior research. I am a very weak coder(through my own fault). However, I like to believe I firm conceptual understanding. So What is my problem? I have an assignement …
by chrisl007 in Software Development ()
Member Avatar
Hi I"m sorry that there is no code, it's just a question in my mind .. How can I sort the request results as rows.In every row 4 results then the next row 4 results and so on.?
by keloa in Web Development ()
Member Avatar
Hi there everyone, I'm a bit new to see and I need your help please. I'm stuck with a merge sort problem where it's support to sort my nodes in lexicographical order. Can you please have a look on my code because i've posted everywhere and i'm not getting the …
by yann.bohbot.9 in Software Development ()
Member Avatar
Hi what is the solution ? i have a file like this : 0 1 2 C 10 1 2 S 7 1 2 C 11 1 2 S 9 3 43 C 10 3 43 S 1 3 43 C 101 3 43 S with this code : i …
by hassai in Software Development ()