Тёмный

#Leetcode 

Code with Alisha
Подписаться 28 тыс.
Просмотров 11 тыс.
50% 1

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...

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

 

15 апр 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@paraschauhan4466
@paraschauhan4466 Год назад
keep going alisha i hope you are achieved more
@anshulbansal7712
@anshulbansal7712 4 месяца назад
Helpful solution
@divyagupta6854
@divyagupta6854 2 года назад
Even though your handwriting is bad, your way of explaining things is awesome. It was nicely explained, and explanation is easy to grasp.
@reshmaparveen6679
@reshmaparveen6679 3 года назад
Great example
@SahilBansal17
@SahilBansal17 11 месяцев назад
Thanks, Great explanation!
@666Imaginative
@666Imaginative 2 года назад
Thanks :) God bless you
@surajnetha3426
@surajnetha3426 Год назад
Thanks for the explanation and code is also easy !!😄
@gouravkumarshaw417
@gouravkumarshaw417 2 года назад
Thanks!!
@ankushchavhan1332
@ankushchavhan1332 2 года назад
Awesome
@ashokdurunde1814
@ashokdurunde1814 2 года назад
thank you
@jedex99
@jedex99 11 месяцев назад
it was awesome I was surprised 😮😮😮 how you have explained you nailed it Alisha 😮😮😮
@chaitanyanimma2939
@chaitanyanimma2939 3 года назад
hope you'll post videos frequently!! And also if possible,why don't you post many other tricky medium - hard questions.
@probabilitycodingisfunis1
@probabilitycodingisfunis1 3 года назад
Hey ,I will definitely try to post other questions too.
@SantiagoRodriguez-bz8ck
@SantiagoRodriguez-bz8ck Год назад
Te amo me acabas de iluminar la vida
@raushankumar6993
@raushankumar6993 11 месяцев назад
Thanks🙏🙏
@aviralsharma9260
@aviralsharma9260 11 месяцев назад
nice explanation
@nikhilpandey3486
@nikhilpandey3486 2 года назад
Great
@rachitbadoni5717
@rachitbadoni5717 2 года назад
Nice explanation Di ❤😇
@Star_Bawa9
@Star_Bawa9 11 месяцев назад
Could you please guide me which lang to choose for leetcode ,i have learned java but mostly people use c++.??why is that
@shivamagarawal8236
@shivamagarawal8236 2 года назад
can't it be done w/o creating the other list i.e in O(1) space
@sameera2426
@sameera2426 2 года назад
yes it can be
@sdaks001
@sdaks001 2 года назад
@@sameera2426 how
@Yash-fh7gm
@Yash-fh7gm Год назад
hey thanks for posting this great video, very nicely explained videos of Code with Alisha never disappoints
Далее
Partition List - Linked List - Leetcode 86
7:40
Просмотров 29 тыс.
LeetCode - 86. Partition List | Day 14 April Challenge
9:54
КРАФТИМ НЕМЛЕС ФРАГМЕНТЫ
1:05:04
Просмотров 250 тыс.
ПОДВОДНЫЙ ГЕЙМИНГ #shorts
00:22
Просмотров 1,1 млн
Quicksort algorithm
20:39
Просмотров 1,8 млн
I Challenged the Best Defender of All Time
11:15
Просмотров 140 тыс.
Rafael Nadal & Carlos Alcaraz: All Three ATP Meetings
24:12
КРАФТИМ НЕМЛЕС ФРАГМЕНТЫ
1:05:04
Просмотров 250 тыс.