Перейти к содержимому

1460. Make Two Arrays Equal by Reversing Subarrays | Leetcode Daily Challenge | DSA | Hindi

ShashCode

0:00 / 0:00

1460. Make Two Arrays Equal by Reversing Subarrays | Leetcode Daily Challenge | DSA | Hindi

2 057 просмотров · 2 года назад
ShashCode
37 тыс. подписчиков
2 057 просмотров · 2 года назад
*Free DSA Sheet:* https://shashcode.com/dsa *Free Java DSA Sheet:* https://shashcode.com/java-dsa 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:    • Java + DSA Complete Course | Beginner to A...   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​