0% found this document useful (0 votes)
20 views

Samsung Software Developer Hiring Chall 02: 20: 45 Left: 1. Equal Array

Samsung is hiring software developers for their AI division. Candidates must have a computer science degree and 2+ years of experience in machine learning or deep learning. The job involves developing algorithms and models for applications like computer vision, natural language processing, and more. Interested candidates should apply on Samsung's careers website by February 15th.

Uploaded by

Avinash Mallick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Samsung Software Developer Hiring Chall 02: 20: 45 Left: 1. Equal Array

Samsung is hiring software developers for their AI division. Candidates must have a computer science degree and 2+ years of experience in machine learning or deep learning. The job involves developing algorithms and models for applications like computer vision, natural language processing, and more. Interested candidates should apply on Samsung's careers website by February 15th.

Uploaded by

Avinash Mallick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Samsung Software Developer Hiring Chall…

02 : 20 : 45 left
[email protected] Help  End Test
2 Questions Total Marks: 200.0 Question 1
Max. Marks 100.00 

2 Programming Questions
Equal array

1. Equal array + 100.0


You are given two arrays and
 with the same length .
Determine the minimum
2. Sorted arrays + 100.0 number of operations required
to make both the arrays equal.
In an operation, you can take
any two elements and swap it.
You can also swap the
elements by taking an element
from array   and another from
array .

Note: Arrays are equal if 


.

Input format

First line: An integer


Second line:   space-
separated integer
denoting the array 

Third line:   space-


separated integer
denoting the array 

Output format

Print the minimum number of


operations required to make
both the arrays equal. If it is
not possible to print the
number of operations, then
print .
?
Constraints

You might also like