We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Practice
  • Certification
  • Compete
  • Career Fair
  • Hiring developers?
  1. Practice
  2. Data Structures
  3. Stacks
  4. Simple Text Editor
  5. Discussions

Simple Text Editor

Problem
Submissions
Leaderboard
Discussions

    You are viewing a single comment's thread. Return to all comments →

  • grdaukiya1996 3 years ago+ 0 comments

    @adi7tya & @badal_bokaro if u add st in stk before the while it will work correctlly (means adding empty string in stack) or u can add in case 4;;======= else if(x==4) { s.pop(); if(s.empty()) st=""; else {st=s.top();}}

    i think u will understood the reason of segma. fault

    2|
    ParentPermalink
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature