Daily Challenge #82

How many blocks?

I have 14 blocks. I think you have 13. But how?

Oh I seeā€¦ I used the length of list block for no reasonā€¦ this makes my blocks heavierā€¦

EDITED.

Noā€¦you are correctā€¦Please read first post againā€¦:joy:

When in the world? :confused:

What is going on here???

By using one more block inside your procedure you are actually use less in general if you use this procedure many times in your app. So for me this solution is better.

1 Like

any other solution?

No, not yet. Do you have something else?

Update your blocks, it does not match with what I said

Can you provide the part which doesnā€™t match? I canā€™t see any mistakes.

Thatā€™s what i did. In the procedure more blocks and using the procedure less blocks.

2 Likes

Remove numberofinputs variable

Solution 1.2

Oicā€¦ ok, so see this:
blocks (43)

blocks (44)

Now ok?

1 Like

Post your blocks?

You can even use less blocks by using
image

1 Like

2 Likes

Here is my solution(same):

blocks (50)

After seeing that most solutions use same logic I tried to do something unique and ended with this:

2 Likes

My small improvement to the solution (leave the result init value blank to save one block).
13 blocks in the end.

2 Likes

Leaving a socket open can be done but is not considered good programming. :wink: :crazy_face:

6 Likes