Lakhankumawat / LearnCPP

Learn Cpp from Beginner to Advanced βœ… Practice 🎯 Code πŸ’» Repeat πŸ” One step solution for c++ beginners and cp enthusiasts.
https://lakhankumawat.github.io/LearnCPP/
MIT License
598 stars 484 forks source link

Sum of first K natural numbers missing in an Array using Set #1557

Closed psorat307 closed 2 years ago

psorat307 commented 2 years ago

Related Issue

Proposed Changes

Additional Info

Checklist

I have added a problem asking to find Sum of first k missing natural number in a given array.

This concept is not yet implemented and it solves the problem of finding the sum of first k missing natural number using Sets

I have tested the solution of the problem rigorously for various test cases.

Output Screenshots

Screenshot #1 Screenshot #2
Code Output
psorat307 commented 2 years ago

@Lakhankumawat Please review it

github-actions[bot] commented 2 years ago

This PR is stale because it has been open 3 days with no activity. Please commit the changes requested or make improvements on the code. Thank you for your contributions!