Fermé

Random challenge

Given two arrays of strings, A and B.

B contains every element in A, and has one additional member, ie:

A = ['dog', 'cat', 'monkey]

B = ['cat', 'rat', 'dog', 'monkey']

Write a function to find the extra string in B. Do this in O(n)

Compétences : PHP, Architecture Logicielle

Voir plus : software challenge, challenge software, monkey, challenge, php challenge, random string, php dog, cat dog, software strings, cat function, php find string, write select function javascript, write vbnet function, software rat

Concernant l'employeur :
( 0 commentaires ) ..., Denmark

N° du projet : #2390757

13 freelance ont fait une offre moyenne de 31 $ pour ce travail

thelogicgates1

Hi, Ready to start. Check PMB please.

31 $ USD en 7 jours
(52 Commentaires)
6.6
sam45

can do right now! please see PM :)

30 $ USD en 0 jours
(83 Commentaires)
6.2
dobreiiita

Hi, I am Algorithm and Data Structure expert and can surely help you here, Please check your inbox,Thanks

30 $ USD en 0 jours
(50 Commentaires)
5.7
it2051229

Hi, kindly check your inbox for my inquiries. Thanks.

30 $ USD en 0 jours
(72 Commentaires)
5.4
GoranUsljebrka

Hello. I am right person for you. I can do this job fast and professionally. You will be pleased with my work

30 $ USD en 1 jour
(45 Commentaires)
5.3
phpthebest

Hi , I have finished your project ,check PM.

30 $ USD en 0 jours
(44 Commentaires)
5.1
poseidon4o

Hello, I am expert php developer I can do this within the hour. Contact me via private message if interested. Best regards, Lyubomir.

30 $ USD en 0 jours
(26 Commentaires)
4.9
webdeveloper1992

I do it within few minute

30 $ USD en 0 jours
(9 Commentaires)
3.6
ExtraNet

Though usually such algorithms need at least O(nlogn) time, your specific request is possible in O(n).

30 $ USD en 1 jour
(3 Commentaires)
3.2
alexcasalboni

I've implemented an efficient function that solves your problem, here you have runtime statistics (arrays-length and computation-time): 10 -> 0.00008s 100 -> 0.0003s 1K -> 0.002s 10K -> 0.03s 100K -> 0.4s Plus

35 $ USD en 0 jours
(5 Commentaires)
3.1
MatKauton

I am ready to do it

30 $ USD en 0 jours
(6 Commentaires)
3.1
faizanharoon

I am a .NET C# Coder...... i can do it for you .....in an hour or so.

30 $ USD en 0 jours
(0 Commentaires)
0.0
nemonet

$arrayA = array("dog", "cat", "monkey"); $arrayB = array("cat","rat", "dog", "monkey"); $result = array_diff_assoc($arrayA, $arrayB); print_r($result); You will get something like: Array ( [0] => rat )

35 $ USD en 1 jour
(1 Commentaire)
0.0