Skip to content

pyton code to remove_duplicates#194

Merged
Pradeepsingh61 merged 1 commit into
Pradeepsingh61:mainfrom
kaiju-no-9:deafult_duplicate
Oct 1, 2025
Merged

pyton code to remove_duplicates#194
Pradeepsingh61 merged 1 commit into
Pradeepsingh61:mainfrom
kaiju-no-9:deafult_duplicate

Conversation

@kaiju-no-9

Copy link
Copy Markdown
Contributor

____summary ____
function's logic is straightforward and efficient:

It creates a map (similar to a dictionary) of all the numbers in the input list.

The keys of this map are the numbers from the list, and the values are their respective counts.

Finally, it uses a list comprehension to iterate through the frequency map and collect all numbers whose count is greater than 1.

____Complexity Analysis ___
Time Complexity: O(n)

Space Complexity: O(k)
Test cases
arr1: [1, 2, 3, 6, 3, 6, 1]
Expected: 1, 3, 6
arr2: [2, 1, 5, 4, 1, 3, 5]
Expected: 1, 5
arr3: [2, 3, 8, 3, 13]
Expected : 3

... is this what was expected to do???...

@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

🎉 Welcome to Hacktoberfest 2025, @kaiju-no-9! 🎃

Thank you for your first contribution to our DSA repository! Here's what happens next:

🔍 Automatic Checks

  • Code Validation: Passed
  • 🧪 Compilation Tests: Passed

📋 Next Steps

🎯 Great job! Your code compiled successfully. Maintainers @Karanjot786 and @Pradeepsingh61 will review your PR soon.

🎁 What You Get

  • 🏆 Hacktoberfest Credit: This PR counts toward your 6 PR goal for exclusive T-shirt + Tree!
  • 🌟 Hall of Fame: You'll be featured in our contributors list
  • 📚 Learning: Code review feedback from experienced developers

💡 Tips for Success

  • Follow our Contributing Guidelines
  • Add comments explaining your algorithm
  • Include time/space complexity analysis
  • Test your code before submitting

Welcome to the community! 🚀

@github-actions github-actions Bot requested a review from Karanjot786 October 1, 2025 08:06
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

🤖 Automated PR Status

🔍 Code Validation

Passed - File naming and structure look good!

🧪 Compilation Tests

Passed - All code compiles successfully!

📋 Overall Status

🎉 Ready for Review - Your PR has passed all automated checks!
👥 Maintainers have been notified for review.


This comment was generated automatically. Checks will re-run when you push new commits.

@kaiju-no-9

Copy link
Copy Markdown
Contributor Author

modification done to Python/algorithms/arrays

@Karanjot786 Karanjot786 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hi @kaiju-no-9 welcome to our DSA code repo! and thanks you for this PR and it is good to go and now @Pradeepsingh61 you can merge this PR

@Pradeepsingh61 Pradeepsingh61 merged commit 3b4a8c3 into Pradeepsingh61:main Oct 1, 2025
17 checks passed
@kaiju-no-9 kaiju-no-9 deleted the deafult_duplicate branch October 1, 2025 09:58
@kaiju-no-9 kaiju-no-9 restored the deafult_duplicate branch October 1, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants