168 questions
graph = {}graph[start] = {}graph[start][a] = 6graph[start][b] = 2graph[a] = {fin: 1} # graph[a][fin] = 1graph[b] = {a: 3, fin: 5} # graph[b][a] = 3 graph[b][fin] = 5graph[fin] = {}# Hash table that st...
I know that C/C++ always lowers the result of dividing int.I know that math.h has ceil(), but I want to know how to raise the header right away without including it.My code is inefficient by comparing...
https://www.hackerrank.com/challenges/python-mutations/problemThis is the question.The answer is def mutate_string(string, position, character): return string[:position] + character + string[position ...
How do I pull out random items in Set? I want to pick random elements from HashSet or LinkedSet, but I don't know how.
What is the best code to make all permutations of a given string? For example, if we have ba, we have ba and ab, but how do we make a program that outputs all the permutations that might come out of a...
In JavaScript, I want to create a string that displays a certain number and puts a zero in front of it to match the digits.For example, How do I do that?
It's the following question, but I don't know how to solve it.How should I solve it?Masters, please answer!
If I say that I have vertices A and B, I don't know how to make sure they're connected and how to write the source code... ㅠ
When creating a simple program, not a program in the textbook, we are studying and developing by using algorithms to create a mechanism that works inside and coding it.I'm asking you this question bec...
class Snapshot<T>(private val array:MutableList<T>) { fun restore():MutableList<T> { return array } }fun test2(){ var array = mutableListOf(1,2) val snap = Snapshot(array) array[0] ...
« | - 16 - | » |
© 2024 OneMinuteCode. All rights reserved.