Тёмный

Leetcode 33 | Search in Rotated Sorted Array | Asked in Paypal Vmware Oracle (Log time Solution) 

The Tech Granth
Подписаться 20 тыс.
Просмотров 363
50% 1

Search in Rotated Sorted Array is a common problem recently asked in many tech companies like Paypal, VMware, Oracle etc.
It can be solved in logarithmic time complexity if we tweak binary search a bit. This question tests a programmers problem solving ability and their ability to identify problem related to key concepts like binary search.
You are expected to solve this problem within 20-30 mins, cover all the edge cases, use proper variable name and write clean and concise code.
I have explained the approach in details in this video.
Based on leetcode 33. Search in Rotated Sorted Array
leetcode.com/problems/search-...
problem statement:
Given an integer array nums sorted in ascending order, and an integer target.
Suppose that nums is rotated at some pivot unknown to you beforehand (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).
You should search for target in nums and if you found return its index, otherwise return -1.
You can buy us a coffee at : www.buymeacoffee.com/thetechg...
system design: • System Design | Distri...
DS for beginners: • Arrays Data Structures...
leetcode solutions: • Leetcode 84 | Largest ...
github: github.com/TheTechGranth/theg...
facebook group : / 741317603336313
twitter: / granthtech

Наука

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

 

2 ноя 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@AbhishekKumar-vf3cu
@AbhishekKumar-vf3cu 2 года назад
Hey, thanks for video. Can you please make LLD video on job schedule where we can pause the job, start the job, stop the job etc Thanks
@TheTechGranth
@TheTechGranth 2 года назад
Yes sure, will add it to list. Do like and subscribe and share with others 🙂
@AbhishekKumar-vf3cu
@AbhishekKumar-vf3cu 2 года назад
@@TheTechGranth Thanks, I really like your content. Already liked and subscribed :) will definitely dhare with friend. Please make you make this lld video as it has lot of threading knowledge and will help everyone
Далее
would you eat this? #shorts
00:23
Просмотров 1,4 млн
Google Coding Interview With A Competitive Programmer
54:17
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
Sliding Window Technique - Algorithmic Mental Models
36:45
How to Soldering wire in Factory ?
0:10
Просмотров 7 млн