[DTCC] OA 2025 start – 12 Apr (fintech prep)

findReciprocal

Function Description

Function Name: findReciprocal

Parameters:

  • int N: the integer to find the reciprocal of

Returns:

  • String: the recurrence of the reciprocal printed twice with a space between the repetitions

Example 1

Input:  N = 8
Output: "0.1250 0"

Explanation

The reciprocal of 8 is 1/8 = 0.12500000..., so the output is 0.1250 0.

Example 2

Input:  N = 9
Output: "0.1 1"

Explanation

The reciprocal of 9 is 1/9 = 0.111111..., so the output is 0.1 1.

Constraints

  • 2 ≤ N ≤ 100000

我们长期稳定承接各大科技公司如TikTok、Google、Amazon等的OA笔试代写服务,确保满分通过。如有需求,请随时联系我们。

We consistently provide professional online assessment services for major tech companies like TikTok, Google, and Amazon, guaranteeing perfect scores. Feel free to contact us if you're interested.

Leave a Reply

Your email address will not be published. Required fields are marked *