+ 7
[QUANTUM CHALLENGE] (Please Read Description) Find The Largest Value In A Collection Of Integer Values
For those who wish to try a quantum challenge, here is the first one, starting relatively easily. If you are curious as to what a quantum challenge is, or its rules or how to participate, please read my other thread, "Would Anyone Like Quantum Challenges?" For this challenge, make a program that finds the largest integer value in a given collection. Please feel free to get as creative as you would like; all if this is hypothetical. Note: I will take this thread down if it goes below four dislikes.
11 Answers
+ 3
my code....in python
print(max([45, 67, 23, 89, 789]))
+ 3
To sayan chandra,
If I may ask, is your max method a special type of quantum operation?
I ask because, the idea behind these challenges is to encourage new thought processes, and to get people to try something new, especially along the lines of new styles of programming.
If it is a quantum-based operation, would you mind explaining? I would love to hear what you have in mind!!
+ 2
To sayan chandra,
The idea behind a quantum expression or quantum operation is the utilization of what are known as qubits; in regular computing, a bit can only be a one or a zero, which inherently forces it to be one particular value. In qubits, a qubits can be both one and zero simultaneously, allowing quantum computers to process every value at once.
If that makes sense, the idea behind a quantum operation is to create (there will be no actual code involved, and is purely psuedo-coding, as no such quantum languages actually exist to implement this code) a new type of data structure or functionality using the principles of quantum theory, and, more specifically, qubits.
I hope this helps!!
+ 2
I just used LiknedList concept from data structures to store and traverse and find Largest and second largest number from collection...
check it...
https://code.sololearn.com/c4LAen7h0zeU/?ref=app
+ 1
I have the downvote disclaimer as a way of letting people know I want to be receptive to their input; this is, after all, a forum for programming. Quantum computing is a bit of a stretch. If people don't like these types of threads, I don't want to keep making them. I am really happy to have these three upvotes, though!!! I hope people are enjoying these styles of threads!!
+ 1
what is a quantum expression.
or quantum based operation
i dont get this...
what do u mean??
+ 1
see this diff method...
https://code.sololearn.com/cnIa1fMGnggV/?ref=app
+ 1
here's my solution https://code.sololearn.com/cfKmJQn5JOnh/?ref=app
0
sayan, you need to read previous quantallax post on the subject. the idea is not a practical implementation of algos, but a theoretical one...
0
it did!