leetcode (1. Two Sum) in c++ #programming #cplusplus #leetcode #tutorial

preview_player
Показать описание
Hi! I wanted to say that I am not a professional programmer, but I program with passion. This code is not the best solution to this problem because it is not the best optimized.
Рекомендации по теме
Комментарии
Автор

Just fyi you can just return the values directly, using “return {0, 1};” or anything similar. You don’t have to have to create a new vector to hold the values

grants.
Автор

Very slow solution, better use unordered_map

domdom_hello
visit shbcf.ru