Skip to content

Instantly share code, notes, and snippets.

View lmoux's full-sized avatar

Luis Moux-Dominguez lmoux

  • San Francisco, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lmoux on github.
  • I am luismoux (https://keybase.io/luismoux) on keybase.
  • I have a public key ASAjvGD7iig_uu8EfSgKPuVxtgxazaMNKhYO8i5r219MRQo

To claim this, I am signing this object:

@lmoux
lmoux / nestingParenthesis.00.cs
Created October 16, 2017 21:40
Parenthesis nesting problem with an extra twist (parametrized input) in C#
/*
Parenthesis nesting problem with an extra twist
Braces that should be validated: ()[]{}<>
Return true when:
a) all braces are balanced (number of opening braces equals to the number of closing braces) AND
b) all braces are in correct order (if there is a closing brace then the previous opening brace should be of the same kind)
Correct:
(abc)asdjh[({})]kjdfd<>