Daily Challenge #99

I didn’t understand this.You mean that if we have excludeCharacter like this : “String”
So the password can’t contain S and t and r and i and n and g ! That means that it can’t be like that : hSjig6t)rfdn ?
Or, the password can’t contain the word String with all of it’s letter in a consecutive order.That means that it can’t be like that String89u798{ ?

1 Like

BTW, that means that the app may crash too because many characters may be removed.So the limit maybe 70 sometimes for example and 13 Sometimes?:thinking:

1 Like

I believe the same, it depends on the numbers of characters that will be removed

1 Like

Correct. Every character in exclude input must not appear.

1 Like

Btw, please expect all character in exclude input must be in the range I have given.
No need to catch error in that case

1 Like

You mean those:

Or you mean the range of 77 letters. my procedure was getting the max limit according to the exclude letters length.So it has no errors :man_shrugging:

Here is my procedure.it has no errors because it get the limit by subtracting the length of the letters that will be excluded.3 blocks can be reduced by setting the limit to a static number which is 77 ( if you want i can remove them :wink:).But the app will crash for the large numbers.That doesn’t happen in this procedure.:
But unfortunately,It has 51 blocks :sob:

Blocks


I don’t know why this black box?

Also another 3 blocks can be reduced by making the Exclude character input as a list.And not converting it.

2 Likes

Great, let’s wait for others

![|220x164](upload://2w14AwHbruI20kIOcxyIqVlyvq0.mp4)
1 Like

Here is my try
99

36 Blocks

Saw this just now :

Here is an updated one:

41 Blocks (Immune to this condition)

4 Likes

@Ansh_Anand, you solution doesn’t work with exclude input, so @Mohamed_Tamer wins!

Here is my own solution

2 Likes

Thanks very much :heart: i’m really happy because this is my first daily challenge that i win in :upside_down_face: BTW, congrats to @Ansh_Anand also. :partying_face:

1 Like

Congrats @Mohamed_Tamer

I didn’t understand? Please elaborate so I can learn.

Thanks :slightly_smiling_face:

See here.:

I believe that my program does that
str input is excluded

Well it makes like this:

But it must do like this:

Oh I got it now. I thought we have to exclude only a character.

![|640x332](upload://zHKZt5uQB68jJWtz9Qz1P8pgDn2.mp4)

Once Again Congratulations @Mohamed_Tamer

![|400x178](upload://haWTnQIxfJ16n0nTE39VINgzIxG.mp4)
2 Likes

Although it doesn’t count as an entry but here is my updated code :sweat_smile: (after clearing a misunderstanding)

45 Blocks

2 Likes

str is a string… for each item is for list :sweat_smile:

:joy: :man_facepalming:t2:
I forget that it is not python
Corrected

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