+ 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.

24th Oct 2017, 10:44 PM
Quantallax
11 ответов
+ 3
my code....in python print(max([45, 67, 23, 89, 789]))
25th Oct 2017, 5:12 AM
sayan chandra
sayan chandra - avatar
+ 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!!
25th Oct 2017, 1:13 PM
Quantallax
+ 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!!
26th Oct 2017, 1:39 AM
Quantallax
+ 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
26th Oct 2017, 1:31 PM
Pranit Gandhi
Pranit Gandhi - avatar
+ 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!!
25th Oct 2017, 1:09 PM
Quantallax
+ 1
what is a quantum expression. or quantum based operation i dont get this... what do u mean??
25th Oct 2017, 5:09 PM
sayan chandra
sayan chandra - avatar
26th Oct 2017, 4:13 AM
sayan chandra
sayan chandra - avatar
26th Oct 2017, 1:46 PM
Stoyan Todorov
Stoyan Todorov - avatar
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...
25th Oct 2017, 5:17 PM
Kustaa
0
it did!
26th Oct 2017, 1:51 AM
Kustaa