algorithm tag

168 questions


1 answers
42 views
0
Please use Python to solve it

Write a program that outputs the average of integers input from the program user, but meets the following two conditions How many integers will you enter first and get as many integers as you wantThe ...

2 years ago

1 answers
84 views
0
[javscript][Algorism] Filter Function Question

Hello, the code below is Both the people and tshirts arrays are arranged in ascending order const fp = people.filter(person => { For(let item of tshirts){ // Change the array value if you are look...


1 answers
43 views
0
How do I find the farthest duplicate value in a JavaScript array?

[B, C, C, C, C, B, B, C, A, A], [B, A, C, B, B, A, B, B, A, A], [B, C, B, C, A, A, A, B, C, B], [B, B, B, A, C, B, A, C, B, A], [A, A, A, C, A, C, C, B, A, C], [A, B, B, A, A, C, B, C, C, C], [C, B, A...

2 years ago

1 answers
101 views
0
Please give me a simple Python algorithm question!

list = [{'id':'hello'','name':'kim','address':'seoul'},{'id:'hello','name':'choi','address':'busan'}]If there's a dictionary on the list,If the id value is the sameI want to combine the name and addre...


1 answers
60 views
0
merge sort,quick sort rate question

While studying the algorithm, I compared the speed using the clock function by implementing the quick alignment and the merge alignment as cIn general, I knew that quick sorting performed better than ...


1 answers
44 views
0
cLanguage code-up algorithm problem questions

First of all, this question itself is about what's on code-up (other sites), so I don't know if I can ask this question... I'm worried, but I'm so curious. I'll upload it

2 years ago

1 answers
53 views
0
Receive an integer input until an opening character is found in C

Enter space and save it in an integer array until you get a line character in C languageI want to print them out in order. The maximum number of integers to be entered is not more than 100.)Enter 5 6 ...

2 years ago

1 answers
44 views
0
How do you calculate the equilibrium factor for the AVL tree?

[+2] [-2] 7 3 / \ / \ [+2] 6 9 [0] [0] 2 5 [-2] / \ [+1] 3 9 [-1] / \[0] 1 10 [0] (Tree 1) (Tree 2)It represents the equilibrium argument of ea...

2 years ago

2 answers
127 views
0
To determine if two squares overlap

We are making a program that determines whether squares overlap each other by receiving rectangular information (x-pos, y-pos, height .All inputs are int type, and only rectangles will be entered. I t...


1 answers
43 views
0
Algorithmic problems

No matter how many hours I spent looking back at the logic and reworking the code, it wasn't wrong with my logic and code. If you press the scoring button on the site, you will see several failures.Th...

2 years ago
« - 14 - »

© 2024 OneMinuteCode. All rights reserved.