Brackets, braces, parentheses, and other such creatures(davesquared.blogspot.com)

submitted by nrstottnrstott(345) 3 years, 9 months ago

An interesting story about a common task in text-manipulation done with TDD. The problem is stated as such: This aim of this challenge was to determine whether any given string has a legal bracket structure. Basically, make sure all the '(', '[', '{', and '<' have matching ')', ']', '}' and '>'. We also need to take nesting into account, so that "({)}" is incorrect, and "({}<{}>)" will pass.

1 comment |category: |Views: 12

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by daviddavid(405) 3 years, 9 months ago 0

The linked to post is an effort to work through a problem posed on the dev102.com site (kicked here: http://www.dotnetkicks.com/architecture/A_Programming_Job_Interview_Challenge_13_Brackets). Probably a good idea to look at that first (especially if you're keen to work through the problem yourself).

Reply

information Login or create an account to comment on this story