Data Structures in Javascript - Objects (First repeating character algorithm)

preview_player
Показать описание
Ok, so we've coded out our object class - now I think it's time we moved into using objects in some algorithmic problems. This one's not bad, and we see how to solve the problem in 3 ways. Hope you enjoy.

Рекомендации по теме
Комментарии
Автор

For an input array = [1, 5, 2, 4, 5, 7, 1], the results are different. the bruteForce(array) returns 1, while the usingObject (array) returns 5.

liyan
welcome to shbcf.ru