#πŸ”’ Here is my correct working code but test cases are not passed .. so can anyone help me with this

22 messages Β· Page 1 of 1 (latest)

cosmic archBOT
#

Hey @umbral warren!

It looks like you're trying to paste code into this channel.

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
#

@umbral warren

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

noble forge
#

The bot message tells you how to format code for Discord.

#

!paste If you can't format it you can paste it here

cosmic archBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

umbral warren
spice dew
#

so which test is failing?

#
# Complete the 'arrayChallenge' function below.
#
# The function is expected to return a LONG_INTEGER_ARRAY.
# The function accepts LONG_INTEGER_ARRAY arr as parameter.
#

this isnt enough to help us help you :S

umbral warren
#

Compiled successfully.10/15 test cases passed
Use print or log statements to debug why your hidden test cases are failing. Hidden test cases are used to evaluate if your code can handle different scenarios, including corner cases.

Test case 10

Test case 11

Test case 12

Test case 13

Test case 14

Test case 0

Test case 1

Test case 2

Test case 3

Test case 4

Test case 5

Test case 6

Test case 7

Test case 8

Test case 9

  • 12 testcases
    Compiler Message
    Time limit exceeded
    Allowed time limit:10 secs
    Your code did not execute in time. Please optimize your code. For more details on runtime environment, click the β€œInfo” button
    Your Output (stdout)
    ~ no response on stdout ~
noble forge
#

Is this a hackerrank challenge?

umbral warren
#

yes i am giving ibm coding round test

#

only 16 mins remaining so if you can help me with this it will be a great help and i will be very thankful to you

noble forge
#

!rule 8

cosmic archBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

noble forge
#

sorry we can't help you

umbral warren
#

ok np

spice dew
#

however once you're done with the test we can help you figure out what went wrong haha

#

but yeah, dont cheat

umbral warren
#

ok thanks for making me realise i am now closing the test.. is it fine

cosmic archBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.