data-structure tag

44 questions


1 answers
101 views
0
solve the knapsack problem by dynamic planning

I'd like to solve the knapsack problem using dynamic planning, but somehow it'sWhy?I tried writing the code below to solve it as 1 origin, but it was not correct.In many explanations, the transition o...


1 answers
135 views
0
I'm using through in Django's ManyToManyField, but I got an error and I don't know how to improve it.

After creating a program in Windows 10 and verifying its operation, Ubuntu 18 writes the same thing.It works fine with Windows works fine.The model containing the ManyToManyField goes into DB, but doe...


1 answers
95 views
0
Conditional substitution of numbers into a two-d

I want to save the given numbers in two dimensions.For example, if a sequence {3,12,4,1,5,8} is given, the first digit 3 is inserted into array 1, the second digit 12 is larger than 3, so it is insert...

2 years ago

2 answers
107 views
0
I want to sort a consolidated list that shares two or more nodes.

Is there a way to sort the two ascending concatenated lists that share the last few nodes into one concatenated list in ascending order?For example, -900->120->200->230 \ 452->700 ...


1 answers
73 views
0
I want picojson to read hierarchical json files

I tried to load the json file with picojson in VisualStudio 2012 C++, but I couldn't load the json file as intended.(The data I want most is the array in the polygonList array in the json file (pointI...


1 answers
107 views
0
I want to do something ordered hash with ruby.

Ruby wanted to deal with the Map data structure implemented in the tree structure.Are there any classes that meet the following requirements?Do you have any libraries implemented?You can store values ...


1 answers
131 views
0
Can't I see a Blackboard architecture implementation example (such as OSS) somewhere?

Good evening.As the title suggests, can I see the source of any system implemented in the Blackboard architecture?I'm interested in architecture and I'm researching a lot of things, but I can't feel i...


1 answers
126 views
0
. To create a link list in Java

What is the best way to create a link list in Java?


1 answers
117 views
0
How do you know if a binary tree is in balance?

I am reviewing the class I took at school during the winter vacation. I have a question while studying this tree. I wonder what the best way to find out if the height of the tree is balanced. I think ...


1 answers
107 views
0
[Data structure] I want to know the actual use of the queue and stack!!

Hello! I am personally studying algorithms and data structures through studiesFor list, such as single linked list, double linked list, etc. I can understand why it is implemented differently even tho...

« - 2 - »

© 2024 OneMinuteCode. All rights reserved.