- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
[ Leetcode] 2441.Largest Positive Integer That Exists Its Negative using Java | 02 May 2024 | Array
LeetCode Problem of the day
02 May 2024
Problems : Largest Positive Integer That Exists Its Negative using Java
Level : Easy
Topic : Arrays| Sorting | Hash Table | Data Structures | Two pointers
------------------------------------------------
You may also visit another playlists :
👉Java Tutorial :
https://www.youtube.com/playlist?list=PLFKSskMOGy_vPxk8cRdYSAmlidDk18Lkl&jct=I5AtnVfigkMksWjQcbPW1MAfufLVDg
👉 Geeks-for-Geeks Problem :
https://www.youtube.com/playlist?list=PLFKSskMOGy_sdf5j2Ue7CRKTBp6AyjmP3&jct=RQr94DoSjVEiIn9xuSa3nLt_bnMo6Q
👉 Coding ninjas Easy coding problem :
https://www.youtube.com/playlist?list=PLFKSskMOGy_uc43WokYuyD8PFeG0NOMwl
---------------------------------------------------------------
Description about the problem as follows :
Given an integer array nums that does not contain any zeros, find the largest positive integer k such that -k also exists in the array.
Return the positive integer k. If there is no such integer, return -1.
Example 1:
Input: nums = [-1,2,-3,3]
Output: 3
Explanation: 3 is the only valid k we can find in the array.
Example 2:
Input: nums = [-1,10,6,7,-7,1]
Output: 7
Explanation: Both 1 and 7 have their corresponding negative values in the array. 7 has a larger value.
Example 3:
Input: nums = [-10,8,6,7,-2,-3]
Output: -1
Explanation: There is no a single valid k, we return -1.
---------------------------------------
Please subscribe the channel
Like and Share the video
Thank you for watching the video
----------------------------------------------
#leetcodeproblemoftheday
#leetcode2441problemsolution
#problemofthedayleetcodeusingjava
#hashtable #sortingproblemleetcode
#twopointerapproachleetcodeproblemsolution
#largestpositiveintegerthatexistsitsnegativeusingjava
#largestpositiveintegerthatexistsitsnegativeleetcodeproblem
Видео [ Leetcode] 2441.Largest Positive Integer That Exists Its Negative using Java | 02 May 2024 | Array канала My Learning Hub
02 May 2024
Problems : Largest Positive Integer That Exists Its Negative using Java
Level : Easy
Topic : Arrays| Sorting | Hash Table | Data Structures | Two pointers
------------------------------------------------
You may also visit another playlists :
👉Java Tutorial :
https://www.youtube.com/playlist?list=PLFKSskMOGy_vPxk8cRdYSAmlidDk18Lkl&jct=I5AtnVfigkMksWjQcbPW1MAfufLVDg
👉 Geeks-for-Geeks Problem :
https://www.youtube.com/playlist?list=PLFKSskMOGy_sdf5j2Ue7CRKTBp6AyjmP3&jct=RQr94DoSjVEiIn9xuSa3nLt_bnMo6Q
👉 Coding ninjas Easy coding problem :
https://www.youtube.com/playlist?list=PLFKSskMOGy_uc43WokYuyD8PFeG0NOMwl
---------------------------------------------------------------
Description about the problem as follows :
Given an integer array nums that does not contain any zeros, find the largest positive integer k such that -k also exists in the array.
Return the positive integer k. If there is no such integer, return -1.
Example 1:
Input: nums = [-1,2,-3,3]
Output: 3
Explanation: 3 is the only valid k we can find in the array.
Example 2:
Input: nums = [-1,10,6,7,-7,1]
Output: 7
Explanation: Both 1 and 7 have their corresponding negative values in the array. 7 has a larger value.
Example 3:
Input: nums = [-10,8,6,7,-2,-3]
Output: -1
Explanation: There is no a single valid k, we return -1.
---------------------------------------
Please subscribe the channel
Like and Share the video
Thank you for watching the video
----------------------------------------------
#leetcodeproblemoftheday
#leetcode2441problemsolution
#problemofthedayleetcodeusingjava
#hashtable #sortingproblemleetcode
#twopointerapproachleetcodeproblemsolution
#largestpositiveintegerthatexistsitsnegativeusingjava
#largestpositiveintegerthatexistsitsnegativeleetcodeproblem
Видео [ Leetcode] 2441.Largest Positive Integer That Exists Its Negative using Java | 02 May 2024 | Array канала My Learning Hub
Комментарии отсутствуют
Информация о видео
2 мая 2024 г. 18:15:08
00:01:51
Другие видео канала
