Write easy java snippet code

En curso Publicado hace 6 años Pagado a la entrega
En curso Pagado a la entrega

Questions: Understand the code snippet below and do as instructed in ‘TODO’ section.

Code Snippet:

a = [1,2,3,4,10,20,30] # random length between 1 to 10,000, random content 1 to 10,000

b = [20,30,1,2,1,3,4,4,5]

def mergeCounter(a,b):

response = {}

# Rules:

# modify of array a and b is not allowed

# merge of a and b is not allowed

# you can only use one loop

###

# TODO: Implement this function in below section

###

# Output:

# Key: number

# value: frequency of key from array a and b

# Example:

# a = [1,2,1,5]

# b = [1,3,3,4,5]

# response = {1:3,2:1,5:2,3:2,4:1}

return response

# Testing

mergeCounter (a,b)

Desarrollo API de Google Maps Arquitectura de software Desarrollo de software Verificación / QA

Nº del proyecto: #16040873

Sobre el proyecto

3 propuestas Proyecto remoto Activo hace 6 años

Adjudicado a:

$20 USD en 1 día
(2 comentarios)
1.6

3 freelancers están ofertando un promedio de $30 por este trabajo

algispetkuns

can do this for you Relevant Skills and Experience with one loop Proposed Milestones $40 USD - completed and tested

$40 USD en 1 día
(27 comentarios)
5.1