PHP technical round interview Question part -1

PHP technical round interview Question part -1

AM Channel

3 года назад

46,235 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@SoniYadav-nk8mg
@SoniYadav-nk8mg - 04.11.2022 08:10

How to fix .... Undefined offset 0,1...

Ответить
@SuperOsoro
@SuperOsoro - 11.10.2022 18:23

// this might help simplify it
$array = [1, 2, 3, 4, 5, 6, 1, 2, 5, 8, 3, 4, 5, 5, 5, 5, 9];
$arrayCountValues = array_count_values($array);
asort($arrayCountValues);
echo array_key_first($arrayCountValues);

Ответить
@veena1358
@veena1358 - 01.06.2022 16:21

Please make some more videos on technical interview questions

Ответить
@scottgeithman8648
@scottgeithman8648 - 10.05.2022 01:17

no need for any foreach loop at all ... just use `$itemCountArray = array_count_values($numArray);` and then sort `$itemCountArray`. `array_count_values()` is built in PHP function ...

Ответить
@statustv9600
@statustv9600 - 25.03.2022 13:10

Can you please create video of hackerrank To explain and solve problem in php

Ответить
@deenadhayalan9391
@deenadhayalan9391 - 08.02.2022 09:02

$input = [1,0,2,3,4,5,5,4,5,3,2,1,5,1,1,1,1,4,3];
$elementCount = array_count_values($input);
sort($elementCount);
$minCountElement = array_key_first($elementCount);
var_dump($minCountElement);

Ответить
@don17525
@don17525 - 29.01.2022 13:31

array_key_first will do it right after the asort function. Nice job btw

Ответить
@rbiyatrisha3702
@rbiyatrisha3702 - 15.11.2021 22:26

Good question with explanation

Ответить
@archanamv144
@archanamv144 - 19.10.2021 14:41

👍👍👍

Ответить
@ChigozieOrunta
@ChigozieOrunta - 01.10.2021 20:31

Great video. Although it would have been easier if you had just used array_count_values in your logic. No need to reinvent the wheel.

Ответить
@LakhanDey
@LakhanDey - 17.04.2021 15:01

New video

Ответить