data-structure tag

44 questions


2 answers
80 views
0
A simple algorithmic question! (Check if it is the same character pair)

Hello! It's a simple question. Hmm... I don't know what to do with the algorithmI'm trying to get two strings from the user and check if they're the sameFor example, even if the string is flipped, the...


1 answers
99 views
0
c++ circular queue

#include <iostream> #include <assert.h>using namespace std;class CircularQueue {private: int *mData; int mFront, mRear, mMaxSize;public: CircularQueue(); CircularQueue(int _data); ~Circula...

2 years ago

1 answers
78 views
0
c Language // free function related question.

I'm implementing the stack as an array, but in the code below,After copying in the main function, delivering the copied stack If free is used, a compilation error does not appear, but if you run it, f...

2 years ago

1 answers
70 views
0
Class Array Declaration Size

I declared a queue using a low-cost array, but I think the size of the element is 5, so I think a total of 6 elements can fit in it, but there are more than 6 sizes in the array. Why is that?#include ...

2 years ago

1 answers
106 views
0
Tree and Association List

Hello! Can you give me one or two examples that cannot be implemented using the tree data structure and can only be implemented as a connection list?(Whatever it is, it doesn't matter!)

2 years ago

1 answers
90 views
0
I have a question in C language typeef and function pointer.

Hello, I'm asking you a question because there are parts in grammar that I don't understand well while studying the data structure.typedef void VisitFuncPtr(BTData data);void InorderTraverse (BTreeNod...

2 years ago

1 answers
82 views
0
Can c++ internal (inner) classes be defined outside of external classes?

Implementing list and vector I don't want to define itterator, which is an internal class of two classes, so I define it separately. I'd like to refer to it, is there a way?

2 years ago

1 answers
67 views
0
I'd like to ask you a question about calculating the time complexity

Is it n/2 or n/2 + 1 in this case? 2/2I am still confused about the exam tomorrow...


1 answers
97 views
0
I have a question for strcpy

C//Enter your code here#include <stdio.h>#include <stdlib.h>typedef int element;typeef structure DListNode { // Dual Connection Node Type element data; struct DListNode* llink; struct DLis...

2 years ago

1 answers
74 views
0
Can you combine the pointer array and the array pointer?

void com() { struct TTT { char isDup[10]; char readData[10]; struct TTT* link[9]; }; struct TTT case1; char* data; data = read(); for (int i = 0; i < 9; i++) { case1.readData[i] = data[i]; ...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.