Retired
Braces status (retired)
53 of 547bestwebua
Loading description...
Algorithms
Fundamentals
Logic
Arrays
Data Types
Loops
Control Flow
Basic Language Features
Regular Expressions
Declarative Programming
Advanced Language Features
Programming Paradigms
Strings
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Retired. See https://github.com/codewars/content-issues/issues/86
This comment has been hidden.
The first one is already a fixed test in at least 3 of the 4 available languages (couldn't check Ruby).
I know, but I was talking about the random test. If they're only present in the fixed test, the users could just hardcode them. Also, there's only one of them in the fixed test so it won't require much effort to hardcode it.
This comment has been hidden.
This comment has been hidden.
Please use spoiler flag.
Okay, thanks, but you shouldn't have closed the issue.
You're right, sorry.
Python 3.8 should be enabled.
Thanks, @FArekkusu!
now i know Regex is awesome
This might be intentional, but the test cases don't check for incorrectly interwoven braces, like this ( [ ) ]
Hi, @Emzed89. I have updated test cases.
But there is a tag "Regular Expressions" for this kata. It's a little funny.
Why expected false?
[ '(', '(', ')', ')' ] [ '[', '[', ']', ']' ] [ '{', '}' ] 2 2 2 2 1 1 true
Expected: false, instead got: true Log ([some{text}here]...)
@Steven Pavlovskii, what the kata lang?
I'm sorry, it was my mistake. Everything is allright,just my code was incorrect
No problem;)
This comment has been hidden.
As written earlier, regex is not banned in any way (at least in python). To do that you should at least put the following in the preloaded section:
Hi, anter69! Could you make a valid Pyton translation with banned regex? Thanks for your kata fixes. P.S.: I have disabled regex in Ruby version.
Thanks. But nothing happens. Your solution with regex still in valid kata solutions.
Should be now OK in python!
Thank you so much, @anter69! Have a nice day;)
@bestwebua - you've actually also disabled sub/gsub and sub!/gsub! as string functions in Ruby. This is super annoying, those functions are so critical to string manipulation and they don't necessarily involve regex, so you've thrown the baby out with the bath water... :/
@StepBack13 sub/gsub aren't magic stick. Healthy newborn should swim by default.
This comment has been hidden.
Ok. I do it if you help me. How I can parse the code of user solution in test cases? Nothing in Kata Test Framework.
This comment has been hidden.
@donaldsebleung, thanks a lot for the description how to do it in JS! I will try to do it in Ruby :) Cheers!
I have updated kata and description. Check out, please!
Hi, @donaldsebleung! Could you fix valid this kata JS translation (it should be with banned regex)??? Ruby and Python translation with regex ban is already done. Cheers:) Let this kata publish out from beta!
This comment has been hidden.
Hello, @donaldsebleung! Thanks for your comment. My kata the same (https://www.codewars.com/kata/valid-braces), I acknowledge and apologize for not checked it before publishing. But in my kata in braces can be some text like this '(text...)[]', it is not present in Valid Braces kata! :) And I deleted from the description information about regex.
This comment has been hidden.
Big thanks @GiacomoSorbi for the JS && Piton translation of this kata!
And now Crystal too ;)!
Thank you for the funny kata that I will pass soon to my guys; cheers :)!
Wow! Thanks for the Crystal translation! Great job) Cheers!
Nearly same as https://www.codewars.com/kata/valid-braces ;-)...
Thanks for the comment! Wow, I have same idea :) I will add in my kata description: func should not use regex.
Don't know if it helps;-)... by the way it's as easy without regex:-)...
Thanks, man ;)
Yeah, if you do a kata search for brace or bracket or parentheses, there are lots of katas like this.
Hell yeah! I will :)