1460. Make Two Arrays Equal by Reversing Subarrays | Leetcode Daily Challenge | DSA | Hindi
Автор: ShashCode
Загружено: 2024-08-02
Просмотров: 1964
Описание:
Anagrams( almost same question on strings):
• Check if two strings are anagrams | Java p...
Problem Name:
1460. Make Two Arrays Equal by Reversing Subarrays
Problem Statement:
You are given two integer arrays of equal length target and arr. In one step, you can select any non-empty subarray of arr and reverse it. You are allowed to make any number of steps.
Return true if you can make arr equal to target or false otherwise.
Problem Link:
https://leetcode.com/problems/make-tw...
Solution Link:
https://github.com/Tiwarishashwat/Int...
Graph Playlist:
• Graph Data Structure Series
Java Plus DSA Placement Course Playlist:
• Плейлист
Java Plus DSA Sheet:
https://docs.google.com/spreadsheets/...
Notes:
https://github.com/Tiwarishashwat/Jav...
Telegram Link:
https://shashwattiwari.page.link/tele...
Ultimate Recursion Series Playlist:
• Плейлист
Instagram Handle: (@shashwat_tiwari_st)
https://shashwattiwari.page.link/shas...
Samsung Interview Experience:
• I cracked Samsung | SRIB Interview Experie...
Company Tags:
Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe | Samsung
Timestamp:
0:00 - Introduction
2:31 - How to convert any arr to target easily
4:35 - when conversion is not possible
5:43 - anagrams identification
6:24 - solution 1 - sorting
8:18 - solution 2 - 2 hashmaps
11:33 - code
14:47 - solution 3 - 1 hashmap
17:28 - code
19:04 - solution 4 - 1 array
21:53 - code
23:20 - interview tip
#ShashwatTiwari #coding #problemsolving
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: