We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Practice
  • Certification
  • Compete
  • Career Fair
  • Hiring developers?
  1. Practice
  2. Databases
  3. Relational Algebra
  4. Basics of Sets and Relations #2
  5. Discussions

Basics of Sets and Relations #2

Problem
Submissions
Leaderboard
Discussions

Sort 31 Discussions, By:

votes

Please Login in order to post a comment

  • vijayasrich
    3 years ago+ 0 comments
    Answer is '5'
    

    Because the elements of A U B are 2,3,4,5,6. The count would be 5.

    5|
    Permalink
  • ramimilanacm
    1 week ago+ 0 comments

    just answer : 5 and submit the code because A U B => {2,3,4,5,6} so toatl count is => 5

    0|
    Permalink
  • jyocekinderly125
    2 weeks ago+ 0 comments

    Intersection is basically when two subsets having same numbers, alaphabets wazifa to make someone miss you

    0|
    Permalink
  • timur_samkharad1
    4 months ago+ 0 comments
    python

    len(list(x for x in {1,2,3,4,5,6} if x in {2,3,4,5,6,7,8}))

    0|
    Permalink
  • sagar100196
    6 months ago+ 0 comments
            int count=0;
      int a[]={1,2,3,4,5,6};
      int b[]={2,3,4,5,6,7,8};
     for(int i=0;i<a.length;i++)
        {
    for(int j=0;j<b.length;j++)
    {
        if(a[i]==b[j])
        {
            count++;
        }
    }
    

    } System.out.print(count); } }

    0|
    Permalink
Load more conversations

Need Help?


View top submissions
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature