Daily Challenge #16

Here is a small challenge for today: write a procedure, which replaces an item from a list of lists, the goal is to use as less blocks as possible, the procedure should work for all row/column combinations

in the example below the item in row3/column2, i.e. the number 32 should be replaced by 99

the result would look like this

example project attached, just add the blocks of the procedure…

list_of_lists_challenge.aia (2.4 KB)

Taifun

10 Likes


list_of_lists_challenge.aia (2.6 KB)

Yeee this is my first solved daily challenge
I created it with 8 blocks inside procedure let’s see that if someone can create it less then 8 blocks.

1 Like

I can tell you already that @taifun has a solution of 6 blocks. :grin: But you are close.

2 Likes

When I see your reply I was like
tenor
Why I am here :sob:

3 Likes

But you are real close. :+1:Look at your code and see what you can change or leave out to make it work.

3 Likes

Can I ask if procedure’s call blocks are counts too?

I don’t think so

Thanks Peter for appreciate me I think now I have to wait for @Taifun

I guess community needs a separate category for Daily Challenges! :eyes:
#DailyChallenges

5 Likes

The blocks inside the procedure counts, so @parmarparth996 has 8 and @Taifun has 6.

1 Like

Don’t give up to easily. Hint: You have to change very little to your blocks.

1 Like

Peter I think I solved it

list_of_lists_challenge (1).aia (2.5 KB)
Take a look

6 Likes

Great work:+1::+1::+1::+1::+1::+1::+1:

2 Likes

Oh, I was going to do same :slightly_frowning_face: But great work :+1:

5 Likes

Let’s try on next challenge and hope that you will be faster than me on next Challenge

2 Likes

But I still have chance to reduce the blocks before next challenge. :grin:

2 Likes

well done…
and it works like this because of the call by reference characteristics of lists

Taifun

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.