1389. Create Target Array in the Given Order|leetcode|Java

preview_player
Показать описание
Logic and Implementation for Create Target Array in the Given Order question from leetcode using java.
Guys if you know any other better solution then please share that in the comments.
If there is any typo then sorry.
Happy coding :).
Рекомендации по теме
Комментарии
Автор

I saw a few solutions using the ArrayList to solve this problem.
But this kind of approach is unique.
And I think the run time gets reduced if we use the ArrayList.
Anyway keep up the good work.

saipraveenkumar
Автор

Good solution but 1 test case is failing for input [0, 1, 0] index[0, 1, 0]

hrithikpol
join shbcf.ru