Тёмный

Subarray division 

TAP ACADEMY
Подписаться 79 тыс.
Просмотров 2,8 тыс.
50% 1

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

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@VishwajeetKumar-kc1nx
@VishwajeetKumar-kc1nx 4 месяца назад
Nice explanation sir❤❤❤❤
@VishwajeetKumar-kc1nx
@VishwajeetKumar-kc1nx 4 месяца назад
Yes sir❤❤❤
@VishwajeetKumar-kc1nx
@VishwajeetKumar-kc1nx 4 месяца назад
Yes
@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)
@na8884
@na8884 9 месяцев назад
*)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)); } }
@vaishnaviuttarwar1597
@vaishnaviuttarwar1597 Год назад
Hello, can’t we solve it by sliding window method?
@tanishdogra8815
@tanishdogra8815 5 месяцев назад
Yes
Далее
Apples and oranges
22:34
Просмотров 2,1 тыс.
Sherlock and array
22:40
Просмотров 1,3 тыс.
Chocolate feast
23:39
Просмотров 1,6 тыс.
Number line jumps
25:04
Просмотров 1,5 тыс.
Comprehensive - Pandas for Data Analysis and Manipulation
1:03:09
Breaking the records
27:57
Просмотров 3,7 тыс.
Repeated string
21:31
Просмотров 3,2 тыс.
Love letter mystery
25:48
Просмотров 1,3 тыс.
Subarray Division  HackerRank Solution
7:48
Просмотров 3,5 тыс.