2161. Partition Array According to Given Pivot || LeetCode 2161 || Biweekly LeetCode 71
VloĆŸit
- Äas pĆidĂĄn 4. 02. 2022
- Here in this video we have discussed the approach to solve
2161 Minimum Sum of Four Digit Number After Splitting Digits of Biweekly Contest 71 .
Question Link :- leetcode.com/contest/biweekly...
Code Link :-
Presenting you the best placement preparation course document down here
đ(You can download the sheet and use it as a tracker as per your convenience).
â Link for the Bro Coders PPC sheet:- onedrive.live.com/view.aspx?r... After this if you need doubt support join our telegram channel for getting it solved
đđ»
đJoin the telegram channel for doubts and discussions:-t.me/joinchat/wSYWX-gbgoRjNmNl
If you follow this course in sequential manner it would be most optimal. Otherwise if you are at intermediate level and want selective preparation of any particular topic you can jump directly, otherwise it's not suggested. And also since it's our new endeavor to help out students with quality education free of cost . So please help us in this mission!!!
âïž Like, Share, Subscribe!!
========================================================================
đFollow us on Instagram:- / bro_codrs
đJoin the telegram channel for doubts and discussions:-t.me/joinchat/wSYWX-gbgoRjNmNl
========================================================================
Link to our other major series:-
â Dynamic Programming: czcams.com/users/playlist?list...
â Recursion: czcams.com/users/playlist?list...
â Backtracking: czcams.com/users/playlist?list...
â Greedy: czcams.com/users/playlist?list...
â Array: czcams.com/users/playlist?list...
â Hashing: czcams.com/users/playlist?list...
â Linked List: czcams.com/users/playlist?list...
â Binary Search Tree : âą Search in a Binary Sea...
â Binary Tree : âą Binary Tree -Course In...
â Stack : âą Parenthesis Checker |...
â Queue : âą Queue Basics and STL||...
â Maths: âą Find factors , check f...
========================================================================
đ±To buy books at excessive cheap prices and sell your old books, visit :- www.bookstop.me
========================================================================
For convenience, refer to given timestamps:-
========================================================================
#BroCoders #LeetCode #InteviewBits #GFG #PlacementCourse #dp #stack #queue #maths #greedy #array #binaryTree #BST #Graphs #recursion #backtracking #string #stl #c++ #java #DSA #CompetitveProgramming #CodeForces #CodeChef #ICPC #CompetitiveCoding #FreePlacementSeries #Microsoft #Google #Amazon #Apple #Facebook #FlipKart #Netflix #TowerResearch #VMWare #DirectI #CodeNation #Infosys #GoldmanSachs #TCS #Tier3 #IIT #NIT #IIIT #Interview #Aptitude #Contest #CodingContest #HackerRank #HackerEarth #BinarySearch #BroCode #Trending #PlacementUpdates #PlacementNotification #IntenshipUpdates #InternshipNotification #LinkedIn #Samsung #Naukri #SoftwareEngineer #Hackathon #SoftwareDevelopmentEngineer #SDE #IT #ComputerScience #CSE #FAANG #DynamicProgramming #2129#LeetCode #CapitalisetheTitle #BiweeklyLeetCode
Biweekly70 #2129 #solution #answer #Fastest_answer
2161. Partition Array According to Given Pivot || LeetCode 2161 || Biweekly LeetCode 71
2161. Partition Array According to Given Pivot || LeetCode 2161 || Biweekly LeetCode 71
2161. Partition Array According to Given Pivot || LeetCode 2161 || Biweekly LeetCode 71
2161. Partition Array According to Given Pivot || LeetCode 2161 || Biweekly LeetCode 71
ram ram bhiya .. jai siya ram
Jai Shree Ram!!
very nice approach for contests
Glad you liked it
can anyone correct me why I m getting wrong output
class Solution {
public:
vector pivotArray(vector& nums, int pivot) {
int start=0;
int end=nums.size()-1;
int run=0;
while(run
can anyone correct me why I m getting wrong output
class Solution {
public:
vector pivotArray(vector& nums, int pivot) {
int start=0;
int end=nums.size()-1;
int run=0;
while(run
You have not maintained the order of array in case of end pointer, if say 12 comes and then 11 and your pivot is 10. So, your code is first pushing 12 towards the end and then pushing 11 before it but is should be opposite 12 succedded by 11.
I hope you understand
You have not maintained the order of array in case of end pointer, if say 12 comes and then 11 and your pivot is 10. So, your code is first pushing 12 towards the end and then pushing 11 before it but is should be opposite 12 succedded by 11.
I hope you understand
for a sec i had a thought of this sol ,but later i use swap function and 2 pointers
That comes but during contest we have to be fast!!
@@BroCoders yes, that's why I was able to solve only 2
Abhijeet Bro i also used swap function and two pointers approach but i am getting wrong output can you correct me?
class Solution {
public:
vector pivotArray(vector& nums, int pivot) {
int start=0;
int end=nums.size()-1;
int run=0;
while(run
@@imshivendra your answer is all good brother but the end pointer is not allowing you to print the answer in input sequential manner so it's throwing error . I used an extra space for this case else I have also written the same code before and faced the error
@@abhijitroy1958 Bro if you won't mind please share your code
please 3rd and 4th bhi daldo brođ
Almost there!! video coming in few minutes!!
can anyone correct me why I m getting wrong output
class Solution {
public:
vector pivotArray(vector& nums, int pivot) {
int start=0;
int end=nums.size()-1;
int run=0;
while(run
@@BroCoders can anyone correct me why I m getting wrong output
class Solution {
public:
vector pivotArray(vector& nums, int pivot) {
int start=0;
int end=nums.size()-1;
int run=0;
while(run
Suggestion is don't use #tags in description, CZcams reduces reach instead use just words like #Internship to
Internship
Thanks bhai!!
Will implement from upcoming videos!!
â@@BroCoders it is very minute help when compared to your help
@@rohithchittibommala2002 đđ
class Solution {
public:
vector pivotArray(vector& nums, int pivot) {
int start=0;
int end=nums.size()-1;
int run=0;
while(run