Skip to content

Create ImplementStackUsingArray - #5802

Closed
singhshreya-bhriguvanshi wants to merge 1 commit into
TheAlgorithms:masterfrom
singhshreya-bhriguvanshi:patch-5
Closed

Create ImplementStackUsingArray#5802
singhshreya-bhriguvanshi wants to merge 1 commit into
TheAlgorithms:masterfrom
singhshreya-bhriguvanshi:patch-5

Conversation

@singhshreya-bhriguvanshi

@singhshreya-bhriguvanshi singhshreya-bhriguvanshi commented Oct 14, 2024

Copy link
Copy Markdown

A program to implement a Stack using Array. The push() method takes one argument, an integer 'x' to be pushed into the stack and pop() which returns an integer present at the top and popped out from the stack. If the stack is empty then return -1 from the pop() method.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

 A program to implement a Stack using Array. The push() method takes one argument, an integer 'x' to be pushed into the stack and pop() which returns an integer present at the top and popped out from the stack. If the stack is empty then return -1 from the pop() method.
@codecov-commenter

codecov-commenter commented Oct 14, 2024

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.76%. Comparing base (85b3b1d) to head (0e6b09b).
⚠️ Report is 689 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5802      +/-   ##
============================================
- Coverage     64.77%   64.76%   -0.02%     
  Complexity     4295     4295              
============================================
  Files           599      599              
  Lines         16764    16764              
  Branches       3219     3219              
============================================
- Hits          10859    10857       -2     
- Misses         5462     5463       +1     
- Partials        443      444       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@siriak siriak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your file name doesn't end in .java, and you need to add JUnit tests

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!

@github-actions github-actions Bot added the stale label Nov 26, 2024
@github-actions github-actions Bot removed the stale label Dec 7, 2024

@Nagpal-11 Nagpal-11 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good way of approaching the problem.

@varada610

Copy link
Copy Markdown
Contributor

Your file name doesn't end in .java, and you need to add JUnit tests

Yeah I added the same comment.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!

@github-actions github-actions Bot added the stale label Feb 10, 2025
@github-actions

Copy link
Copy Markdown

Please reopen this pull request once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution!

@github-actions github-actions Bot closed this Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants