microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.3.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

katas/content/oracles/classical_oracles/solution.md

9lines · modepreview

The binary notation of $7$ is $111_2$. This means that our solution should return `true` if and only if each bit of the input is `true`.

Notice that in this problem the solution doesn't depend on whether the bit string is converted into an integer using 
big endian or little endian notation. In general this is an important distinction that you need to take into account.

@[solution]({
    "id": "oracles__classical_oracles_solution",
    "codePath": "Solution.qs"
})