pravocodes / Hacktoberfest2024

25 stars 227 forks source link

Update STACK_USING_ARRAY.cpp #34

Open arjunjain8887 opened 2 weeks ago

arjunjain8887 commented 2 weeks ago
  1. Memory Management: Ensured proper deallocation of memory using delete[] for arrays.
  2. Error Handling: Added checks for invalid capacities and empty stack conditions.
  3. Corrected Logic: Fixed the condition in isfull() and improved overall logic flow.
  4. User Feedback: Enhanced user feedback messages to make it clearer what went wrong.
  5. Code Readability: Improved indentation and spacing for better readability.
  6. Consistent Return Types: Ensured that functions like peek() return a consistent value even in error cases.
pravocodes commented 2 weeks ago

There are conflicts with the main branch please resolve those to get merged.

harshangvirani commented 1 week ago

@pravocodes please assignee this task to me

pravocodes commented 1 week ago

Yes I have assigned @harshangvirani