#Array fun house (giving more than asked for)

1 messages · Page 1 of 1 (latest)

limber skiff
#

On my assignment for class I was able to get all the way through, but when going to check it I realized I’m getting a wrong array that I don’t know how to fix. It is supposed to return me the first 7 letters greater than 9 and then the first 5 greater than 15. It is giving me those, but then filling in the rest of the array with 0s. How do I get it to stop doing this?

desert kayakBOT
#

<@&987246399047479336> please have a look, thanks.

desert kayakBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

limber skiff
#

Array fun house (giving more than asked for)

gray otter
#

Because you make the array too big

#

Default int value is 0

lost surge
#

In the end u cam return a copy of the array which only contains the first t elements