Тёмный

350. Intersection of Two Arrays II | hashing | leetcode daily challenge | DSA | Hindi 

shashCode
Подписаться 16 тыс.
Просмотров 1,8 тыс.
50% 1

Problem Name:
350. Intersection of Two Arrays II
Problem Statement:
Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as it shows in both arrays and you may return the result in any order.
Problem link:
leetcode.com/problems/interse...
Java Plus DSA Placement Course Playlist:
• Java and DSA Course Pl...
Java Plus DSA Sheet:
docs.google.com/spreadsheets/...
Notes:
github.com/Tiwarishashwat/Jav...
Telegram Link:
shashwattiwari.page.link/tele...
Ultimate Recursion Series Playlist:
• Recursion and Backtrac...
Instagram Handle: (@shashwat_tiwari_st)
shashwattiwari.page.link/shas...
Samsung Interview Experience:
• I cracked Samsung | SR...
Company Tags:
Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe | Samsung
Timestamp:
0:00 - Introduction
#ShashwatTiwari #coding​​ #problemsolving​

Опубликовано:

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@RohitKumar-dz8dh
@RohitKumar-dz8dh 28 дней назад
Thanks 😊
@harikrushnapatel4577
@harikrushnapatel4577 29 дней назад
Best ever..move ahead sir complete full java along with advance...because no one is providing java playlist...everyone go towards c++
@codingwave56
@codingwave56 28 дней назад
Good Explanation 👏🏻
@PiyushSharma-we8yd
@PiyushSharma-we8yd 29 дней назад
maine aapse pehle seekha tha intersection of two arrays 1 toh mujhse aaj ka khud hi ban gya tha bhaiya😍
@Ashwinmahajan-ld6qt
@Ashwinmahajan-ld6qt 29 дней назад
bhai please apni DSA wali series continue kro na...
@dibbodas4116
@dibbodas4116 28 дней назад
class Solution { public: vector intersect(vector& nums1, vector& nums2) { int arr[1001] = {0}; vectorans; for(int a:nums1) arr[a]++; for(int b:nums2) { if(arr[b]>0) { ans.push_back(b); arr[b]--; } } return ans; } }; time O(n) space O(1)
Далее
8 patterns to solve 80% Leetcode problems
7:30
Просмотров 276 тыс.
How to Start Leetcode (as a beginner)
8:45
Просмотров 766 тыс.