- Видео 118
- Просмотров 261 421
Tech Pathak
Индия
Добавлен 1 янв 2020
This channel is for programmers and related to technical things.Tech Pathak
Equal Stacks || HackerRank Stack Solution || Java || Hindi
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode #stack
Equal Stacks Problem Solution in Java
This is a Hackerrank Stack Problem Solving series
HackeRrank Question Link:-
www.hackerrank.com/challenges/equal-stacks/problem?isFullScreen=true
Sari videos dekhne ke liye yaha click karen :-
ruclips.net/p/PLK92vFtWL9O2lE_ZZw9P9hiDKzVuocDcA
In this video, we will solve a problem from HackeRrank in Java
Please subscribe to my channel and hit the bell icon so you will be notified when I will upload more videos on RUclips
Please Like Share and Subscribe.
Thank You...
Equal Stacks Problem Solution in Java
This is a Hackerrank Stack Problem Solving series
HackeRrank Question Link:-
www.hackerrank.com/challenges/equal-stacks/problem?isFullScreen=true
Sari videos dekhne ke liye yaha click karen :-
ruclips.net/p/PLK92vFtWL9O2lE_ZZw9P9hiDKzVuocDcA
In this video, we will solve a problem from HackeRrank in Java
Please subscribe to my channel and hit the bell icon so you will be notified when I will upload more videos on RUclips
Please Like Share and Subscribe.
Thank You...
Просмотров: 366
Видео
Balanced Brackets || HackerRank Stack Solution || Java || Hindi
Просмотров 383Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode #stack Balanced Brackets Problem Solution in Java This is a Hackerrank Stack Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/balanced-brackets/problem?isFullScreen=false Sari videos dekhne ke liye yaha click karen :- ruclips.net/p/PLK92vFtWL9O2lE_ZZw9P9hiDKzVuocDcA In this vi...
Maximum Element || HackerRank Stack Solution || Java || Hindi
Просмотров 623Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode #stack Maximum Element Problem Solution in Java This is a Hackerrank Stack Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/maximum-element/problem?isFullScreen=false Sari videos dekhne ke liye yaha click karen :- ruclips.net/p/PLK92vFtWL9O2lE_ZZw9P9hiDKzVuocDcA In this video,...
28 Find the Index of the First Occurrence || LeetCode Solution || Java || Hindi
Просмотров 548Год назад
#LeetCode #hacker #hackers #hackerstayaway #HackerRank Find the Index of the First Occurrence Problem Solution in Java This is a Random Problem Solving series Question Link :- leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/description/ Video Playlist : ruclips.net/p/PLK92vFtWL9O1BDiZfZVwcRp6w6_w47Meu In this video, we will solve a problem from LeetCode in java Please s...
Reverse a doubly linked list || HackerRank LinkedList Solution || Java || Hindi
Просмотров 506Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Reverse a Doubly Linked List Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/reverse-a-doubly-linked-list/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- ruclips.net/p/PLK92vFtWL9O04KE3Bxx3uG0d9...
Valid Parentheses || LeetCode Solution || Java || Hindi
Просмотров 177Год назад
#LeetCode #hacker #hackers #hackerstayaway #HackerRank LeetCode Valid Parentheses Problem Solution in Java This is a Random Problem Solving series Question Link :- leetcode.com/problems/valid-parentheses/description/ Video Playlist : ruclips.net/p/PLK92vFtWL9O1BDiZfZVwcRp6w6_w47Meu In this video, we will solve a problem from LeetCode in java Please subscribe my channel and hit the bell icon so ...
Inserting a Node Into a Sorted Doubly Linked List || HackerRank LinkedList Solution || Java || Hindi
Просмотров 627Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Inserting a Node Into a Sorted Doubly Linked List Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- r...
Find Merge Point of Two Lists || HackerRank LinkedList Solution || Java || Hindi
Просмотров 438Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Find Merge Point of Two Lists linked lists Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/find-the-merge-point-of-two-joined-linked-lists/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- ruclips...
Cycle Detection || HackerRank LinkedList Solution || Java || Hindi
Просмотров 548Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Cycle Detection linked lists Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/detect-whether-a-linked-list-contains-a-cycle/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- ruclips.net/p/PLK92vFtW...
Delete duplicate value nodes from a sorted || HackerRank LinkedList Solution || Java || Hindi
Просмотров 438Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Delete duplicate value nodes from a sorted linked lists Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/delete-duplicate-value-nodes-from-a-sorted-linked-list/problem?isFullScreen=true Sari videos dekhne ke liye yaha cl...
Get Node Value || HackerRank LinkedList Solution || Java || Hindi
Просмотров 427Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Get Node Value linked lists Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/get-the-value-of-the-node-at-a-specific-position-from-the-tail/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- ruclips...
Merge two sorted linked lists || HackerRank LinkedList Solution || Java || Hindi
Просмотров 639Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Merge two sorted linked lists Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/merge-two-sorted-linked-lists/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- ruclips.net/p/PLK92vFtWL9O04KE3Bxx3uG0...
Compare two linked lists || HackerRank LinkedList Solution || Java || Hindi
Просмотров 674Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Compare two linked lists Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/compare-two-linked-lists/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- ruclips.net/p/PLK92vFtWL9O04KE3Bxx3uG0d9UtxFd3ph...
Reverse a linked list || HackerRank LinkedList Solution || Java || Hindi
Просмотров 625Год назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Reverse a linked list Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/reverse-a-linked-list/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- ruclips.net/p/PLK92vFtWL9O04KE3Bxx3uG0d9UtxFd3ph In th...
Print in Reverse Of a Linked List || HackerRank LinkedList Solution || Java || Hindi
Просмотров 6362 года назад
#Hackerrank #hacker #hackers #hackerstayaway #programming #programmer #program #leetcode Print in Reverse of a Linked List Problem Solution in Java This is a HackerRank LinkedList Problem Solving series HackeRrank Question Link:- www.hackerrank.com/challenges/print-the-elements-of-a-linked-list-in-reverse/problem?isFullScreen=true Sari videos dekhne ke liye yaha click karen :- ruclips.net/p/PLK...
Delete a Node From a Linked List || HackerRank LinkedList Solution || Java || Hindi
Просмотров 6772 года назад
Delete a Node From a Linked List || HackerRank LinkedList Solution || Java || Hindi
Insert a node at a specific position in a linked list || HackerRank LinkedList Solution||Java||Hindi
Просмотров 1,2 тыс.2 года назад
Insert a node at a specific position in a linked list || HackerRank LinkedList Solution||Java||Hindi
Insert a node at the head of a linked list || HackerRank LinkedList Solution || Java || Hindi
Просмотров 5602 года назад
Insert a node at the head of a linked list || HackerRank LinkedList Solution || Java || Hindi
Insert a Node at the Tail of a Linked List || HackerRank LinkedList Solution || Java || Hindi
Просмотров 8362 года назад
Insert a Node at the Tail of a Linked List || HackerRank LinkedList Solution || Java || Hindi
Print the Elements of a Linked List || HackerRank LinkedList Solution || Java || Hindi
Просмотров 1,4 тыс.2 года назад
Print the Elements of a Linked List || HackerRank LinkedList Solution || Java || Hindi
Cut the sticks || Hackerrank Solution || Java || Hindi
Просмотров 1,9 тыс.2 года назад
Cut the sticks || Hackerrank Solution || Java || Hindi
Library Fine || Hackerrank Solution || Java || Hindi
Просмотров 7052 года назад
Library Fine || Hackerrank Solution || Java || Hindi
Rotate Array || LeetCode Solution || Java || Hindi
Просмотров 4272 года назад
Rotate Array || LeetCode Solution || Java || Hindi
Number of Steps to Reduce a Number to Zero || LeetCode Solution || Java || Hindi
Просмотров 2942 года назад
Number of Steps to Reduce a Number to Zero || LeetCode Solution || Java || Hindi
The Power Sum || HackerRank Solution || Java || Hindi
Просмотров 1,8 тыс.2 года назад
The Power Sum || HackerRank Solution || Java || Hindi
Binary Search || LeetCode Solution || Java || Hindi
Просмотров 912 года назад
Binary Search || LeetCode Solution || Java || Hindi
Reverse String || LeetCode Solution || Java || Hindi
Просмотров 2682 года назад
Reverse String || LeetCode Solution || Java || Hindi
Sherlock and Squares || Hackerrank Solution || Java || Hindi
Просмотров 1,2 тыс.3 года назад
Sherlock and Squares || Hackerrank Solution || Java || Hindi
Append and Delete || Hackerrank Solution || Java || Hindi
Просмотров 2,8 тыс.3 года назад
Append and Delete || Hackerrank Solution || Java || Hindi
New Laptop || Unboxing and Review MacBook M1 Air || 8gb and 256gb
Просмотров 1403 года назад
New Laptop || Unboxing and Review MacBook M1 Air || 8gb and 256gb
worst explanation
[a-zA-z]+ ye wala part smjh me nhi aaya kya aap smjha skte hain please
Thnkuhh so much
helpful
sir sol. k piche ka idea n logic bhi bataya kijiye dry run to khudh se bhi kr sakte hain
import java.util.*; import java.io.*; class Solution{ public static void main(String []argh){ Scanner in = new Scanner(System.in); int t=in.nextInt(); for(int i=0;i<t;i++){ int a = in.nextInt(); int b = in.nextInt(); int n = in.nextInt(); int sum = a + (int)Math.pow(2,0) * b; System.out.print(sum+" "); for(int j=1;j<n;j++){ sum += Math.pow(2,j) * b; System.out.print(sum +" "); } System.out.println(); } in.close(); } }
a kyu add kyu?
thanx for making this video. understood it
you should explain with dry run it was easy question but here is a lot of beginner who should know from beginning. so you should explain with dry run/code
Thanks for the suggestion next time will try do dry run
HEY PLEASE POST MORE HARD AND MEDIUM LEVEL PROBLEMS FOR STACK HACKERRANK
Sure
4 test case nehi mile
code is tough
Thank youu soo much 🎉Perfect information
I want solution of python - 3.
Ye code time consuming he , Mera code read kro ye single for loop me solution de rha he, List<int> max = new List<int>(); Array.Sort(arr); int init = arr[0]; int count = 0; for(int i=0;i<arr.Length;i++) { int diff = Math.Abs(init - arr[i]); if(diff > 1) { max.Add(count); init = arr[i]; count = 0; i--; } else { count++; } } max.Add(count);
nhi chla tumhara code bhaiya ji...........
hlo sir meri hr ek sem me back aa ja rhi hai shi exam ke baad bhi , kya ye effect krega placement me?
Last semester tak sare clear kar koi kuch effect nahi padega But make sure placement time tak sare clear kar lena
Nicely Explained
y 26.09 in the program means y 26 only
Thank you sir..
Thanks for explaining the problem, But your sol isn't how it should be
bhag sala dry run kerke samjhana chahiye tha na
Nice explanation Sir Really helpful
I have cleared the doubt
Mic kon sa hai bhai
Jabra GN bhai
👍🏻
Good
Good sir ji
Thanks... the ArrayList method was easy understand!!
It helped!
Music htao bhai voice clear nhi hai
Hata diya h bro new videos me nhi h
happy rank me se' a' bhi to common he usko consider kyu nhi kiya.
Hence we are using this two loops that runs till size of n the time complexity of this algo will be O(n) a fine solution but not a optimize solution. peace
we dont have to write code for sorting?
thanks for the solution , could you please recommend any video to traverse 3d array in javascript.
Hey man, great video and explanation. Thanks for helping many budding programmers trying to achieve their dreams. Here is a better solution using HashMap because what he has done in this video is basically taken the concept of HashMap (Key:Value pair) and implemented using another array. class Result { /* * Complete the 'pickingNumbers' function below. * * The function is expected to return an INTEGER. * The function accepts INTEGER_ARRAY a as parameter. */ public static int pickingNumbers(List<Integer> a) { // Write your code here // Create a frequency map of array elements Map<Integer, Integer> frequencyMap = new HashMap<>(); for (int num : a) { frequencyMap.put(num, frequencyMap.getOrDefault(num, 0) + 1); } int maxSubarrayLength = 0; // Iterate through each unique number in the array for (int num : frequencyMap.keySet()) { // Count the length of the subarray containing current num and num + 1 int currentLength = frequencyMap.get(num) + frequencyMap.getOrDefault(num + 1, 0); maxSubarrayLength = Math.max(maxSubarrayLength, currentLength); } return maxSubarrayLength; } }
sir ye code java 15 me kyu nhi chal raha
int c= arr.size()-1; int left = 0; int right =0; for(int i=0;i<arr.size();i++){ left +=arr.get(i).get(i); right+=arr.get(i).get(c); c--; } return left>right?(left-right):(right-left); this works fine :)
atlast found a good video on this
What does + means
+ means occurring multiple times
sbse bkvas explanation
kuch nai smja..sorry
Excellent explanation!
Thanks Khushi
pehle khud samajhle bhai, kitna confuse hai tu, aaram se video bnaa baad me
Ok Bro
nice explanation!!
Thank you Raj
Mujhse apse contact krna h .....can you share any I'd like Instagram, Facebook, what's number
Ap kahi job krte ho?
Yes
Apko placement ho gayi h
Yes, 3 saal pahle hi ho gaya tha mera.
Keep doing
Keep going! 🔥
hello sir , mein c # mein code krti hu logic to build kr leti hu pr mujhe implementation kerne mein issue aata hain isiliye mein consistent nhi rah pati hu
Bas consistency maintain rakho dhire dhire khud realize krogi ki ab implement bhi kar pa rahi ho