Longest Increasing Subsequence - LeetCode #300 - Python, JavaScript, Java and C++

preview_player
Показать описание
Let's solve Longest Increasing Subsequence with Python, JavaScript, Java and C++ LeetCode #300! This is LeetCode daily coding challenge on January, 5th, 2024.

🚀 Unlock the power of binary search to solve the 'Longest Increasing Subsequence' problem efficiently! Join us in this step-by-step coding tutorial where we delve into a smart algorithmic approach to find the longest increasing subsequence in an array. Perfect for both beginners and experienced coders, this video demonstrates how to leverage binary search to optimize your solution. Enhance your problem-solving skills and explore the world of algorithmic thinking. Subscribe now for more coding tutorials and stay ahead in your coding journey! 💻🔍

CodingNinja offers other videos on programming, algorithms, and data structures as well. Subscribe to the channel so you don't miss out on new content!

------------------------------------------------------------------------------------------------------
⭐️ Please subscribe to my channel from here.

⭐️ Relaxing Channel I've been working on. Please subscribe from here.
------------------------------------------------------------------------------------------------------

■ Timeline
0:05 Explain basic idea
4:19 Summarize basic idea and why it works
6:07 What if we don't find a right place with Binary Search
8:37 Coding
11:02 Time Complexity and Space Complexity

■ Blind 75 LeetCode questions

■ Twitter

■ Instagram

■ Problem Link

■ Codes in the video
- Python

- JavaScript

- Java

- C++

■ Playlists

#pythonprogramming #leetcode #algorithm #coding #programming #python #javascript #java #cplusplus
Рекомендации по теме
Комментарии
Автор

If you want to solve Dynamic Programming, here is Python code.

Time Complexity: O(n^2)
Space Complexity: O(n)

CodingNinjaExAmazon
Автор

Very nice solution .. please try to upload early

aurangzeb
Автор

in the example that you presented, the result is correct, longest = 4, but the list is wrong imo, "strictly increasing" doesn't apply in this case: [1, 3, 4, 10]..
but [1, 4, 6, 10] does

AlaaEddineMecha
visit shbcf.ru