Subarray division

  Рет қаралды 3,078

TAP ACADEMY

TAP ACADEMY

Күн бұрын

Пікірлер: 8
@VishwajeetKumar-kc1nx
@VishwajeetKumar-kc1nx 7 ай бұрын
Yes sir❤❤❤
@VishwajeetKumar-kc1nx
@VishwajeetKumar-kc1nx 7 ай бұрын
Nice explanation sir❤❤❤❤
@priyankaprasad4353
@priyankaprasad4353 Жыл бұрын
Hi, can you please make videos covering more dsa topics. It will be very helpful. I am following your dsa playlist and learning a lot from there. Thank you 😊
@sreelakshmi.s2445
@sreelakshmi.s2445 Жыл бұрын
Good explanation sir. Understood well. Was looking solution for this problem, This is the best video i found. Thank you... But here time complexity would not be o(n)
@tanishdogra8815
@tanishdogra8815 8 ай бұрын
Yes
@vaishnaviuttarwar1597
@vaishnaviuttarwar1597 Жыл бұрын
Hello, can’t we solve it by sliding window method?
@na8884
@na8884 Жыл бұрын
*)Subarray division public class BubbleSortExample { static int bubbleSort(int[] arr,int d,int m) { int n=arr.length; int count=0; for(int i=0; i < n+1-m; i++) { int sum =0; for(int j=i; j < i+m; j++){ sum=sum+arr[j]; // System.out.print(n1); } if(sum==d) { count++; } } return count; } public static void main(String[] args) { int arr[] ={2,2,1,3,2,2}; System.out.println("Array Before Bubble Sort"); for(int i=0; i < arr.length; i++){ // System.out.print(arr[i] + " "); } System.out.println(bubbleSort(arr,4,2)); } }
@VishwajeetKumar-kc1nx
@VishwajeetKumar-kc1nx 7 ай бұрын
Yes
Apples and oranges
22:34
TAP ACADEMY
Рет қаралды 2,3 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 366 М.
Two Pointer Algorithm | Two Sum Problem | Solve DS Problems in O(N) Time
19:18
JAVAAID - Coding Interview Preparation
Рет қаралды 123 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 686 М.
How To Solve HackerRank Drawing Book Problem
11:00
JAVAAID - Coding Interview Preparation
Рет қаралды 17 М.
The Last Algorithms Course You'll Need by ThePrimeagen | Preview
16:44
Frontend Masters
Рет қаралды 328 М.