1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
laila [671]
3 years ago
11

Write a function that receives three StaticArrays where the elements are already i n sorted order and returns a new Static Array

only with those elements that appear i n all three i nput arrays. Original arrays should not be modified. If there are no elements that appear i n all three i nput arrays, return a Static Array with a single None element i n i t.
Computers and Technology
1 answer:
weeeeeb [17]3 years ago
8 0

Answer:

Explanation:

The following code is written in Python. It is a function that takes the three arrays as parameters. It loops over the first array comparing to see if a number exists in the other arrays. If it finds a number in all three arrays it adds it to an array called same_elements. Finally, it prints the array.

def has_same_elements(arr1, arr2, arr3):

   same_elements = []

   

   for num1 in arr1:

       if (num1 in arr2) and (num1 in arr3):

           same_elements.append(num1)

       else:

           continue

   

   print(same_elements)

You might be interested in
Which of the following is NOT a type of simple machine?
miv72 [106K]
Wheel and axle, wedge, and screw are all types of simple machines. A declined plane is NOT a simple machine. (but an inclined plane is)
3 0
4 years ago
The role of the
ElenaW [278]

Answer:

Tcp

Explanation:

8 0
3 years ago
How many 2/8 pound patties can she make from 7/8 of a pound of hamburger
Juli2301 [7.4K]

Answer:

3/8

Explanation:

Because 2 can't go into 7, the next best thing is 6, so 2x3 is 6 with 1/8 left over~~~~~hope this helps :) pls brainlist

7 0
3 years ago
Research online and identify two online plagiarism checker tools. Choose such tools that you can use for writing your schoolwork
LenaWriter [7]

This is an essay question, not fit for Brainly - please remove. There is a plagiarism checker by both Grammarly and Quetext, use those to help find your answer.

4 0
4 years ago
. Suppose an instruction takes 1/2 microsecond to execute (on the average), and a page fault takes 250 microseconds of processor
saul85 [17]

Answer:

a. 100.

b. 31500.

Explanation:

So, we are given the following data which is going to help in solving this particular question.

The time required to execute (on the average) = 1/2 microsecond , a page fault takes of processor time to handle = 250 microseconds and the disk time to read in the page = 10 milliseconds.

Thus, the time taken by the processor to handle the page fault = 250 microseconds / 1000 = 0.25 milliseconds.

The execution time = [ 1/2 microseconds ]/ 1000 = 0.0005 milliseconds.

The number of Pages sent in a second by the disc = 1000/10 milliseconds = 100.

Assuming U = 1.

Hence, the disc transfer time = [2/3 × 1 } + [ 1/3 × 0.25 milliseconds + 15 ] × 2.

=0.667 + 15.083.

= 15.75 millisecond.

Average number of instruction = 15.75/0.0005 = 31500.

8 0
3 years ago
Other questions:
  • Jackson builders is constructing new homes in the Parkway subdivision.The company needs the logic for an application that ncalls
    13·1 answer
  • The ____ is a well-established organization with a primary emphasis on computer science. a. International Standards Organization
    14·1 answer
  • Is ubisoft still making assassins creeds on xbox 360
    8·2 answers
  • Write the definition of a class Telephone. The class has no constructors, one instance variable of type String called number, an
    9·1 answer
  • You are connected to a server on the Internet and you click a link on the server and receive a time-out message. What layer coul
    12·1 answer
  • You must. place a child in a federally approved child restraint device. if the child is
    5·2 answers
  • Which of the following statements about cover letters is false?
    14·2 answers
  • I will give brainliest !!
    15·1 answer
  • Subjective Questions
    11·1 answer
  • There used to be a popular type of pulp book for younger readers. They were called "Choose Your Own Adventure" novels. The idea
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!