Parse JSON using Java
22:27
Жыл бұрын
Пікірлер
@sharikkumar8581
@sharikkumar8581 8 сағат бұрын
you are unable to explain.
@rohitsharma-xt8qe
@rohitsharma-xt8qe Күн бұрын
In order to make your Example work in the Immutable class you should change private final Engine engine to public final Engine engine; Otherwise it will not be accessible in the main class as System.out.println(immutableClass.engine.speed); I wonder how come you are bale to access private object of Engine in the main method using ImmutableClass object.
@davidg3594
@davidg3594 3 күн бұрын
Again, this accent! Nope!
@hemantkumardas3333
@hemantkumardas3333 6 күн бұрын
Thanks...
@shindeajinkya2506
@shindeajinkya2506 9 күн бұрын
public class SeperateZeroAndOne { public static void main(String[] args) { int[] nums = {0,1,0,1,0,1}; int left=0,right=nums.length-1; System.out.println("Start it"); while(left<right) { if(nums[left]==1) { while(nums[right]!=0) { right--; } int temp=nums[left]; nums[left]=nums[right]; nums[right]=temp; } left++; right--; } for(int i:nums) { System.out.println(i); } } }
@placeholder663
@placeholder663 11 күн бұрын
Guruji how are you doing Looking for upcoming OpenAI sessions
@sankalpsaxena2471
@sankalpsaxena2471 11 күн бұрын
May i know how the same can be done with Python, If any is not present or displayed then it should fail it with a message
@jhonsen9842
@jhonsen9842 12 күн бұрын
Beautiful
@piyushsoni6109
@piyushsoni6109 14 күн бұрын
Very less information provided
@Greengoldnnn
@Greengoldnnn 14 күн бұрын
Super
@omkarkale-p7q
@omkarkale-p7q 16 күн бұрын
very nice explanation
@sajiakhanam4646
@sajiakhanam4646 16 күн бұрын
Ye kya hua...humne kahan inset kia last me value....ye to wahi reh gaya...5 number insted.
@jatinukey4062
@jatinukey4062 18 күн бұрын
Didn't though this question can be solved by sorting with some small changes!!
@omarbousbia6916
@omarbousbia6916 26 күн бұрын
Great video. But does anyone know leetcode link for this problem?
@rahuldubey754
@rahuldubey754 29 күн бұрын
watching it now, and its still very good compare to other tutorials. great work @Coding Simplified.
@AidanDaGreat
@AidanDaGreat 29 күн бұрын
Bro thanks a lot!
@sinurao1017
@sinurao1017 Ай бұрын
good explanation but can you simulate multiple user scenario using threads?
@Fourthyearclglife
@Fourthyearclglife Ай бұрын
Tqs ku god
@swatiomar8603
@swatiomar8603 Ай бұрын
What will be the complexity in average and best case and how?
@sagarkolhe988
@sagarkolhe988 Ай бұрын
Nice explanation!! In this design pattern we are creating instance in factory class using if else depending on our requirement but what if class name of bike or car changes ? Then we need to change instance name in factory class. Can we loosely coupled it as well?
@dsa_tutorial
@dsa_tutorial Ай бұрын
Nice Explaination
@dEviL_bIsWaJiT
@dEviL_bIsWaJiT Ай бұрын
Great Content. Thanks bhai❤
@rishabhsonkar4535
@rishabhsonkar4535 Ай бұрын
clear explanation thanks
@bhupendrajat8947
@bhupendrajat8947 2 ай бұрын
void addNode(Node head_ref, int pos, int data) { // Your code here if (head_ref == null) { Node newnode = new Node(data); newnode.next = null; newnode.prev = null; } Node current = head_ref; for (int i = 0; i < pos + 1; i++) { Node newnode = new Node(data); // Corrected typo if (i == pos) { Node nextbig = current.next; current.next = newnode; newnode.prev = current; newnode.next = nextbig; // Corrected variable name nextbig.prev = newnode; // Corrected variable name } else { current = current.next; } } } }
@user-kh6rp6yx1j
@user-kh6rp6yx1j 2 ай бұрын
Hey man.
@bhagyashrikamble3160
@bhagyashrikamble3160 2 ай бұрын
how to print 1st 2 character ??
@ranjitasahu19
@ranjitasahu19 2 ай бұрын
Thank you so much
@DVadda-06kom
@DVadda-06kom 2 ай бұрын
Thank you so much sir For simplified explanation.
@vishnunalubola250
@vishnunalubola250 2 ай бұрын
Hi, why can't we use for loop to see if any row or column is empty, so we can confirm whether it's connected or not?
@pawanchormule2530
@pawanchormule2530 2 ай бұрын
nice and brief explanation
@viharivemuri7202
@viharivemuri7202 2 ай бұрын
What a silly video? You need to do all that to just sort numbers from 1 to n? Why can'y you just do for each index i, arr[i] = i+1?
@054_sunny_kumar_kushwaha4
@054_sunny_kumar_kushwaha4 2 ай бұрын
I watched your all videos on TREE and I feel it can turn anyone Zero to hero.. Mastering Binary Trees.
@elnur_talybov
@elnur_talybov 2 ай бұрын
Thanks a lot)
@Melissalovesroblox
@Melissalovesroblox 2 ай бұрын
Tysm
@GauravDG1990
@GauravDG1990 2 ай бұрын
Thanks for the explanation, but will this work when numbers are negative?
@punitsharma584
@punitsharma584 2 ай бұрын
#include <bits/stdc++.h> using namespace std; bool Triplet(int arr[], int arr_size, int sum) { int l, r, m; // for left ,right and middle sort(arr, arr + arr_size); for (int i = 0; i < arr_size - 2; i++) { l = 0; r = arr_size - 1; m = (l + r) / 2; while (l < r) { if (arr[l] + arr[m] + arr[r] == sum) { cout << "Triplet is: " << arr[l] << "," << arr[m] << "," << arr[r]; return true; } else if (arr[l] + arr[m] + arr[r] < sum) l++; else r--; } } return false; } int main() { int n, k, arrsize; cout << "Enter number of elements:"; cin >> n; int array[n]; cout << "Enter the elements:"; for (int i = 0; i < n; i++) { cin >> array[i]; } cout << "Enter the sum:"; cin >> k; for (int i = 0; i < n; i++) arrsize = sizeof(array) / sizeof(array[0]); Triplet(array, arrsize, k); return 0; }
@punitsharma584
@punitsharma584 2 ай бұрын
if you are taking -2 as second case then -3 also will be in arraay whyyou skip those cases that"s why many of us getting error in duplicate element cases ..
@vijay55633
@vijay55633 2 ай бұрын
DP solution is WRONG does NOT PASS ALL THE TEST-CASES PASSES only 84 of them has been passed.
@Ur_boi_asher
@Ur_boi_asher 3 ай бұрын
BRO ITS 2024
@rachamallidorasrivignesh4499
@rachamallidorasrivignesh4499 3 ай бұрын
your way of explanation is really superb brother really ...... so good please make vedeos on data structures and algorithms as well. Once again thank you so much.😊
@varunsharma0099
@varunsharma0099 3 ай бұрын
Thanks for sharing 🤩, very nice explanation.
@krushnnabaviskar7310
@krushnnabaviskar7310 3 ай бұрын
very well explained.
@snehaadhikary7469
@snehaadhikary7469 3 ай бұрын
Great explanation. Can you please tell the time complexity for this?
@rachamallidorasrivignesh4499
@rachamallidorasrivignesh4499 3 ай бұрын
Thanks a lot brother for your clear explanation.
@saibm6280
@saibm6280 3 ай бұрын
Very nicely explained
@Pola_B_Alex_Art
@Pola_B_Alex_Art 3 ай бұрын
💗💗💗Many thanks!💗💗💗
@clasherrony6526
@clasherrony6526 3 ай бұрын
amazing explaination
@tylervision707maul
@tylervision707maul 3 ай бұрын
no such options on mine... it doesnt have the three dots or MORE.. option
@taki7394
@taki7394 3 ай бұрын
Thanks a lot♥
@Marble.commenter
@Marble.commenter 4 ай бұрын
Ok