LeetCode Problems | Medium Question | Rotate Array
Vložit
- čas přidán 7. 09. 2024
- Learn how to Rotate an Array in this LeetCode medium difficulty problem! After getting heavy demand from you, we are solving this problem in both C++ and Java.
If you are joining us late, to know more about PWSkills & plans :
Watch the Orientation Video: • C++ DSA and Java DSA -...
Watch the Launch Video: • @CollegeWallahbyPW THI...
00:19 Question Explanation
02:57 Brute Force Time & Space Complexity
04:19 Time Optimized Approach Explanation
08:13 Optimized Approach Time & Space Complexity
08:54 Best Approach Explanation
11:42 Best Approach Time & Space Complexity
12:06 Extra Tip
13:06 Very Important Concept
15:59 Java Code
18:36 C++ Code
▶️ PW Skills Website - pwskills.com
▶️ PW Skills Instagram - / pwcollegewallah
▶️ PW Skills LinkedIn Channel -
▶️ PW Skills Telegram Channel- t.me/SkillsPW
#CollegeWallah #PhysicsWallah #PhysicsWallahDkills #PWSkills #Programming
Hello Jeevika ma'am, please continue this format in which solve a question in both language
Need complete full stack app development course from zero to advance 🌀
Yes we need app development
Need a leetcode series going parallel with c++ series
Mam please isko continue rakhiye...5-6 days gap is not acceptable... please its request mam....
class Solution {
public:
void rotate(vector& nums, int k) {
vector temp(nums.size());
for(int i = 0; i < nums.size(); i++){
temp[(i+k)%nums.size()] = nums[i];
}
nums = temp;
}
};
Mam please upload more videos of leetcode problems, Your expalanation skills are just wow!
Solution video koe nhi bnata..lekin aap bna rhe ho what a great think...❤️✌🏻
Need more videos of leetcode problems
waiting for more further videos on leetcode questions,your way of explanation is good.
TIme Limit Exeded For the first Approach mam..
class Solution {
public:
void rotate(vector& nums, int k) {
int n=nums.size();
int temp,i;
k= k%n;
while(k--)
{
temp = nums[n-1];
for(i=n-1;i>0;i--)
{
nums[i]=nums[i-1];
}
nums[i]=temp;
}
}
};
Where can i get access to this complete playlist??
mam plz bring more session on question pratice
please continue the series
ma'am plz upload more video....on daily basis
Please upload daily one video 🙏🙏🙏🙏
waiting for more video
Mam plz continue
Last wala solution i.e array ko reverse kr k rotate krne wale ki runtime complexity o(n^2) nhi hogi. Hum pehle pura array reverse kr rhy ha jiski time complexity O(n) ha phir hum dobara array ko parts me reverse kr rhy ho.
I request to pw skills Team please upload video on leetcode problem...plz plz plz
Waiting for next video.
From where we can practice more problems
3 time reverse ki to bhi kar sakte ka?
Start a flutter development course please🙏🙏
Thanks maam😀😀😀
.......
3. 3
5. 7 5. 7
11. 13. 17 . 11. 13. 17
Print two horizontal equilateral triangle made of prime number for n rows,, prime number starts with 3,,,and No arrays ,,no string,,no string function,,,or no list function,,,or other functions should be used
Maam can you plz give solution in Python
split the list and used
[ : : -1] for reverse and add and return
Maam please solve 2 questions daily
need full stack web development
like this viedo
Need JavaScript and react course
PLS SIR NIMCET PREPERATION COURSE ON COLLEGE WALLAH PLSSS SIRR
why hello bacho? 🤣 people who are solving leet code problems might not be juveniles/kids. Some people are elder than you😅
khud se code nhi hota hai