No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello ! How can I change my sorting function called bubblesort, so that it uses a dynamic stack. Now I've done and funcion can work properly, but is using list, because I intercede for the next item and in stack i have access only to the top. Data for stacks … |
|
Hello ! How i can find the smallest number, higher than average value. For example in deque I have these numbers: 46 84 25 93 91 25 37 32 64 49 17 81 59 38 79 22 57 17 61 11 (transferred from file Stack.txt to deque.txt). Тhe average of … |
|
Hi. I need to write a program that finds the shortest route in directed graph. Please look at the picture. [Click Here](https://goo.gl/photos/uRdTfp9pDrAobun87) Here is my code: #include <iostream> using namespace std; const int N = 10; struct elem { char key; elem *next; } *g[N]; void init(elem *g[N]) { for … |
|
Hello ! I have a task that is difficult for me to handle. The task is: Create recursive function that can be generate a string of length N (N <= 100), formed by the letters 'A', 'B' and 'C' and does not containing two identical adjacent substring. For example: enter … |