CSTutor Center
CSTutor Center
  • 23
  • 9 294
Subarray Product Less Than K - Sliding Window - Leetcode 713 - Python and Java
Sliding Window Playlist: th-cam.com/play/PL9Girktx3gqH_AwRyfr4Go2ZyuNk4AR1v.html
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html
Timecodes
0:00 - Intro
1:39 - Problem description
5:06 - Solving the problem
16:34 - Java code
21:30 - Python code
#leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #slidingwindow #programming #javainterviewquestionsandanswers #javainterviewquestions #javaprogramming
มุมมอง: 44

วีดีโอ

3Sum Closest - Two Pointers - Leetcode 16 - Python and Java
มุมมอง 4111 หลายเดือนก่อน
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 1:05 - Problem description 3:22 - Solving the problem 11:42 - Java code 20:48 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #jav...
3Sum - Two Pointer - Leetcode 15 - Python and Java
มุมมอง 15711 หลายเดือนก่อน
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 1:00 - Problem description 5:20 - Solving the problem 20:38 - Java code 28:30 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #jav...
Squares of a Sorted Array - Two Pointers - Leetcode 977 - Python and Java
มุมมอง 5011 หลายเดือนก่อน
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 0:38 - Problem description 3:47 - Solving the problem 11:05 - Java code 14:24 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #jav...
Find the Duplicate Number - Two Pointers - Leetcode 287 - Python and Java
มุมมอง 22111 หลายเดือนก่อน
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 0:20 - Problem description 2:10 - Solving the problem 25:15 - Java code 27:26 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #jav...
Duplicate Zeros - Two Pointers - Leetcode 1089 - Python and Java
มุมมอง 37611 หลายเดือนก่อน
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 0:20 - Problem description 1:30 - Solving the problem 9:30 - Java code 12:33 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #java...
Remove Duplicates from Sorted List II - Two Pointers - Leetcode 82 - Python and Java
มุมมอง 54ปีที่แล้ว
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 0:19 - Problem description 1:34 - Solving the problem 17:38 - Java code 22:05 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #jav...
Remove Duplicates from Sorted Array II - Two Pointers - Leetcode 80 - Python and Java
มุมมอง 136ปีที่แล้ว
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 0:30 - Problem description 4:03 - Solving the problem 20:00 - Java code 21:32 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #jav...
Remove Duplicates from Sorted List - Two Pointers - Leetcode 83 - Python and Java
มุมมอง 47ปีที่แล้ว
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 0:23 - Problem description 1:25 - Solving the problem 4:40 - Java code 9:58 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #javap...
Two Sum - Two Pointers - Leetcode 1 - Python and Java
มุมมอง 60ปีที่แล้ว
Two Pointers Playlist: th-cam.com/play/PL9Girktx3gqExroHvP5IB96Sss6f1j-V6.html Timecodes 0:00 - Intro 0:19 - Problem description 2:50 - Solving the problem 9:44 - Java code 12:29 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #twopointers #programming #javainterviewquestionsandanswers #javainterviewquestions #java...
Substring with Concatenation of All Words - Sliding Window - Leetcode 30 - Python and Java
มุมมอง 125ปีที่แล้ว
Sliding Window Playlist: th-cam.com/play/PL9Girktx3gqH_AwRyfr4Go2ZyuNk4AR1v.html Timecodes 0:00 - Intro 0:25 - Problem description 3:12 - Solving the problem 16:52 - Java code 27:22 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #slidingwindow #programming #javainterviewquestionsandanswers #javainterviewquestions ...
Minimum Window Substring - Sliding Window - Leetcode 76 - Python and Java
มุมมอง 80ปีที่แล้ว
Sliding Window Playlist: th-cam.com/play/PL9Girktx3gqH_AwRyfr4Go2ZyuNk4AR1v.html Timecodes 0:00 - Intro 0:21 - Problem description 1:52 - Big O 3:42 - List of keywords to identify a Sliding Window problem 5:08 - Solving the problem 16:52 - Java code 25:37 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #slidingwind...
Find All Anagrams in a String - Sliding Window - Leetcode 438 - Python and Java
มุมมอง 74ปีที่แล้ว
Sliding Window Playlist: th-cam.com/play/PL9Girktx3gqH_AwRyfr4Go2ZyuNk4AR1v.html Array vs HashMap: th-cam.com/video/-FUVmMweL8I/w-d-xo.html Timecodes 0:00 - Intro 0:23 - Problem description 02:08 - Big O 04:02 - Constraints 08:17 - Solving the problem 18:53 - Java code 23:54 - Python code
PART 2 Permuations in String - Sliding Window - Leetcode 567 - Python and Java
มุมมอง 45ปีที่แล้ว
Watch PART 1 here: th-cam.com/video/491430ACJmQ/w-d-xo.html Sliding Window Playlist: th-cam.com/play/PL9Girktx3gqH_AwRyfr4Go2ZyuNk4AR1v.html Timecodes 0:00 - Intro 1:00 - Array vs HashMap 6:35 - Java code 18:08 - Python code #leetcode #leetcodequestionandanswers #leetcodesolution #coding #python #java #techinterview #programminginterview #slidingwindow #programming #javainterviewquestionsandans...
Permuations in String PART 1 - Sliding Window - Leetcode 567 - Python and Java
มุมมอง 53ปีที่แล้ว
Watch PART 2 here: th-cam.com/video/-FUVmMweL8I/w-d-xo.html In PART 2 we'll use an Array instead of a HashMap Sliding Window Playlist: th-cam.com/play/PL9Girktx3gqH_AwRyfr4Go2ZyuNk4AR1v.html Timecodes 0:00 - Intro 0:21 - Problem description 1:12 - Coding Pattern to use and Big O 3:55 - Constraints 7:30 - Solving the problem 12:43 - Java code 26:13 - Python code #leetcode #leetcodequestionandans...
Max Consecutive Ones III - Sliding Window - Leetcode 1004 - Python and Java
มุมมอง 94ปีที่แล้ว
Max Consecutive Ones III - Sliding Window - Leetcode 1004 - Python and Java
Longest Substring Without Repeating Characters - Sliding Window - Leetcode 3 - Python and Java
มุมมอง 32ปีที่แล้ว
Longest Substring Without Repeating Characters - Sliding Window - Leetcode 3 - Python and Java
Longest Repeating Character Replacement - Sliding Window - Leetcode 424 - Python and Java
มุมมอง 65ปีที่แล้ว
Longest Repeating Character Replacement - Sliding Window - Leetcode 424 - Python and Java
Fruits Into Basket - Sliding Window - Leetcode 904 - Python and Java
มุมมอง 95ปีที่แล้ว
Fruits Into Basket - Sliding Window - Leetcode 904 - Python and Java
Minimum Size Subarray Sum - Sliding Window - Leetcode 209 - Python and Java
มุมมอง 200ปีที่แล้ว
Minimum Size Subarray Sum - Sliding Window - Leetcode 209 - Python and Java
Angular 8 Tic Tac Toe in 10 minutes
มุมมอง 7K5 ปีที่แล้ว
Angular 8 Tic Tac Toe in 10 minutes
Eclipse Shortcuts Java Pro Tips
มุมมอง 555 ปีที่แล้ว
Eclipse Shortcuts Java Pro Tips
Tic Tac Toe in Java
มุมมอง 6695 ปีที่แล้ว
Tic Tac Toe in Java

ความคิดเห็น

  • @CSTutorCenter
    @CSTutorCenter 11 หลายเดือนก่อน

    Time complexity: O(N^3). As you can see in the constraints they made the input array be super small 1,000 max. That's because the time complexity of this algorithm is large. The for loop goes over all N and for each N there is O(N^2) which brings the overall to O(N^3). The space complexity is O(1) because its only an integer and the space to allocate does not grow if the input array is larger in size.

  • @Naavy2022
    @Naavy2022 ปีที่แล้ว

    good stuff

  • @Mis_guidedz
    @Mis_guidedz ปีที่แล้ว

    Wish they were in python

    • @CSTutorCenter
      @CSTutorCenter ปีที่แล้ว

      Thanks for the feedback. I provide the python code at 26:15 in this video. In the description for each of the videos you can click on the last time code to skip to the python code. In my future videos I'll provide more discussion while writing the python code.

  • @CSTutorCenter
    @CSTutorCenter ปีที่แล้ว

    Correction: When I talk about the while loop I say there would be an infinite loop if we didn't have the condition that a cycle is guaranteed. I shouldn't of said infinite loop. I should of said that if there wasn't a guarantee of a cycle we would write the loop ending condition differently.

  • @CSTutorCenter
    @CSTutorCenter ปีที่แล้ว

    Correction: ASCII character 'a' is decimal value 97. Here is the ASCII character map: th-cam.com/video/Xqde6e8XWG4/w-d-xo.htmlsi=lmbrgz5biraE0t_J&t=420

  • @Doggy_Styles_Coding
    @Doggy_Styles_Coding ปีที่แล้ว

    i really should try leetcode out :O

    • @CSTutorCenter
      @CSTutorCenter ปีที่แล้ว

      It's great practice for coding interviews. I recommend starting with the sliding window problems. And do several sliding window problems before moving to the next pattern.