Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Implement set #2

Open
1 task done
opabhijeet opened this issue Mar 21, 2024 · 3 comments
Open
1 task done

[Feature]: Implement set #2

opabhijeet opened this issue Mar 21, 2024 · 3 comments
Labels
Issue:feature issue is created for new feature request Type:Medium Pr is accepted with difficulty level as medium

Comments

@opabhijeet
Copy link
Collaborator

opabhijeet commented Mar 21, 2024

Implement Set methods

  • You have to implement set data structure without using any library ( not even iostream )
  • You have to implement the functions mentioned in DSA_DOJO/Hard/Day1/Set.h
  • You don't have to add any file and only need to modify DSA_DOJO/Hard/Day1/Set.h
  • Set should be dynamic and should consist of Nodes
  • Functions of the class should be defined outside the class
  • You should handle all the exceptions that may occur
  • You are free to add any other functionality
  • You should not delete anything in DSA_DOJO/Hard/Day1/Set.h
  • If your solution is found to be plagiarised heavy penalty would be imposed
  • You would be given 8 working hours ( 2 Days ) to submit the solution

Functions that need to be implemented are:

  • Set Union(Set &s) ---> return a set containing union of elements present in current set and s
  • Set Intersection(Set &s) ---> return a set containing intersection of elements present in current set and s
  • Set operator-(Set& s) ---> return the difference of two sets
  • bool operator==(Set& s) ---> return true if both sets are equal and false otherwise
  • void operator*(Set& s) ---> print the cartesian product of two sets
  • T upper_bound(T num) ---> find upper bound of num in set
  • T lower_bound(T num) ---> find lower bound of num in set

Code of Conduct

  • I agree to follow this project's Code of Conduct
@opabhijeet opabhijeet added Issue:feature issue is created for new feature request Type:Hard Pr is accepted with difficulty level as hard Color labels Mar 21, 2024
@codingmonk070
Copy link
Contributor

@opabhijeet and @Roshu2003 Please assign me this issue in order to add required features

@Roshu2003
Copy link
Collaborator

Roshu2003 commented Mar 24, 2024

@codingmonk070 Submit the solution by tomorrow

@opabhijeet opabhijeet added Type:Medium Pr is accepted with difficulty level as medium and removed Type:Hard Pr is accepted with difficulty level as hard Color labels Mar 27, 2024
@sharvil-lade
Copy link

@Roshu2003 @opabhijeet please assign this task to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue:feature issue is created for new feature request Type:Medium Pr is accepted with difficulty level as medium
Projects
None yet
Development

No branches or pull requests

4 participants