#Leetcode
Vložit
- čas přidán 15. 04. 2021
- iven the head of a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of the two partitions.
Example 1:
Input: head = [1,4,3,2,5,2], x = 3
Output: [1,2,2,4,3,5]
Example 2:
Input: head = [2,1], x = 2
Output: [1,2]
Link to challenge : leetcode.com/problems/partiti... or
leetcode.com/explore/challeng...
keep going alisha i hope you are achieved more
Thanks, Great explanation!
Thanks for the explanation and code is also easy !!😄
Helpful solution
Thanks :) God bless you
Great example
thank you
Could you please guide me which lang to choose for leetcode ,i have learned java but mostly people use c++.??why is that
it was awesome I was surprised 😮😮😮 how you have explained you nailed it Alisha 😮😮😮
Thanks!!
Thanks🙏🙏
nice explanation
Even though your handwriting is bad, your way of explaining things is awesome. It was nicely explained, and explanation is easy to grasp.
hope you'll post videos frequently!! And also if possible,why don't you post many other tricky medium - hard questions.
Hey ,I will definitely try to post other questions too.
Awesome
Te amo me acabas de iluminar la vida
Nice explanation Di ❤😇
Great
can't it be done w/o creating the other list i.e in O(1) space
yes it can be
@@sameera2426 how
hey thanks for posting this great video, very nicely explained
videos of Code with Alisha never disappoints