Skip to navigation Skip to content
Arvi Fox

Personal blog about IT, sport, travel etc.

  • Post a comment in Telegram
  • Main posts
  • Home
  • Blogs I read
  • For software engineers
  • Privacy
  • FAQ interview
  • Home
  • Blogs I read
  • FAQ interview
  • For software engineers
  • Privacy
Posted on May 30, 2012September 30, 2016 by arvifox

Bracket sequence

()((())((())

Is it correct sequence?

I need just a counter.

foreach char in string {

If next bracket is “(” then inc(counter);

If next bracket is “)” then dec(counter);

If counter < 0 then showmessage(“Error”);

}

Category: IT
Tag: theory / math

Post navigation

Previous post: delphi key state
Next post: If 0 then print 0 else 1
Donate
Donate, please. I need MacBook.
Categories
  • English (112)
  • Games (26)
  • IT (633)
  • Life (11)
Tag cloud
agile AI / ML / BigData / AR / VR / Computer vision algorithms android architecture C# computer graphics / geometry database debug Delphi developing tools/IDE devops dll faq firebase firebird game git google gradle graph theory internet / network interview / job java jetty kmp kotlin management meetup multithreading MySQL news/releases pattern performance PHP rx security / crypto sport programming Testing / QA theory / math tips & tricks UI/UX video / audio windows xml / xpath / json
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Яндекс.Метрика
Follow us
  • twitter
  • bitbucket
  • github
  • goodreads
  • stackoverflow
Recent Posts
  • Start building with Material 3 Expressive
  • Android Studio Meerkat Feature Drop
  • Compose Multiplatform 1.8.0 Released
  • Upgrading your build from Gradle 8.x to the latest
  • gui – cli
Comments
    © Arvi Fox 2025
    PrivacyBuilt with Storefront.