Good Afternoon guys Starts from today I've started DSA from Sorting. So in this morning I was studying Bubble sort But this not efficient for large data set problem, cause I was solving leetcode problem #912 sort an array accepted but when I try to submit I was facing Time limit exceed😒 is there any one who can tell me why this happens? And How to solve this here u can check it`https://leetcode.com/problems/sort-an-array/submissions/1974314953`
LeetCode
Sort an Array - LeetCode
Can you solve this real interview question? Sort an Array - Given an array of integers nums, sort the array in ascending order and return it.
You must solve the problem without using any built-in functions in O(nlog(n)) time complexity and with the smallest…
You must solve the problem without using any built-in functions in O(nlog(n)) time complexity and with the smallest…
Guys How are u all in todays day am continue to focus on the Insertion Sort & Selection Sort & I will share for you what i understand from it
What do u think about swap & shift in the context of Sorting. which one is efficient?
Algorithm (Thinking Before Coding) INSERTION SORT👈
1.Assume first element is already sorted
2.Take next element (key)
3.Compare it with previous elements
4.Shift bigger elements to the right
5.Insert the key in correct position
6.Repeat
1.Assume first element is already sorted
2.Take next element (key)
3.Compare it with previous elements
4.Shift bigger elements to the right
5.Insert the key in correct position
6.Repeat
Do you know that why Merge Sort is preferable to bubble, insertion, and selection sorts? But why? Its best-case and worst-case time complexities are O(n log n). It can handle larger tasks, whereas those other algorithms cannot because they are less efficient, even though the program doesn't favor them, unlike quicksort and mergesort. 😮💨 here i've solved leetcode problem. https://leetcode.com/problems/sort-an-array/submissions/1977309399/
LeetCode
Sort an Array - LeetCode
Can you solve this real interview question? Sort an Array - Given an array of integers nums, sort the array in ascending order and return it.
You must solve the problem without using any built-in functions in O(nlog(n)) time complexity and with the smallest…
You must solve the problem without using any built-in functions in O(nlog(n)) time complexity and with the smallest…
👍1
Good Evening guys☺️ in this night am about to focus on studying LINKEDLIST and solving leetcode problem in C++
Oh am of mind to solve longest repeating substring without repeating characters [3 Leetcode]
I have watched about 10+videos but still ain't understand the point
😒
I have watched about 10+videos but still ain't understand the point
😒
Here today's leetcode problem solved https://leetcode.com/problems/longest-substring-without-repeating-characters/submissions/1978627253/
LeetCode
Longest Substring Without Repeating Characters - LeetCode
Can you solve this real interview question? Longest Substring Without Repeating Characters - Given a string s, find the length of the longest substring without duplicate characters.
Example 1:
Input: s = "abcabcbb"
Output: 3
Explanation: The answer…
Example 1:
Input: s = "abcabcbb"
Output: 3
Explanation: The answer…
I've covered Deletion & Insertion but this was not easy it was challenging😒 But if u've patience u can succeed🎉
Good Morning buddies🌅 how are u doing
Am hanged with DSA assignment
That is so many questions
Am hanged with DSA assignment
That is so many questions
And guys, many times I haven't been active on LeetCode, and for that matter, I lose many chances again and again, like A2SV. However, for the past four days, I thought, "What if I start solving DSA problems as long as my study continues?" So today, I'm going to focus on `MEDIAN OF TWO SORTED ARRAY`. It's a hard question, but no matter what, watching videos and other resources is supportive.✅
👍1