9 Best Patterns Questions In Java (for Beginners) | Java Placement Course | Lecture 5
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2024
- Time Stamps for Patterns
Solid Rectangle & Nested Loops - 00:35
Hollow Rectangle - 10:38
Half Pyramid - 18:23
Inverted half Pyramid - 23:47
Inverted & Rotated Half Pyramid - 26:50
Half Pyramid with Numbers - 33:45
Inverted Half Pyramid with Numbers - 38:21
Floyd's Triangle - 44:36
0-1 Triangle - 48:45
(It is not important to remember the names)
Notes & Homework Problems: docs.google.co...
My TH-cam Gear 😉: docs.google.co...
Effort being put while explaining any part is commendable!
C+ course kab suru hoga didu
@@mukeshbabuambani9995 th-cam.com/play/PLfqMhTWNBTe0b2nM6JHVCnAkhQRGiZMSJ.html
Kya h sir kuchh isake bare batae sir
th-cam.com/video/h1HbQGHVB14/w-d-xo.html
@@my_thenics_progression614 Dude I think you need to correct a lot of things in yourself to get out of that confusion,
for example your english.......isn't it.....?
Row is Horizontal allignment
Columns is Vertical Allignment
No one asked
@@reshmasingh9193 There were some likes it means it is helpful for some people .
❤
@@Ankii22 I was confused at first
Thank you so much
I'm still shocked these videos are free. Thank you bhaiya and didi, you guys have all my respect and love❤
apki sb vdo ho gyin ?
They will get paid by TH-cam dont worry
The 9th question can be done in another approach/way:-
int k=1;
for(int i=0;i
bruh it worked
It works but the pattern is not correct
it shows this pattern -
1
10
101
1010
10101
You explain really well! The way how you show what is actually happening in the code makes it easy to understand. Thanks!
That is what I call real passion for teaching.
Kon kon ye class 2024 m kr rha hai 😂😂
Me
Me to
me
Is tarah ke comments karne wale dur rhe
So why is it funny if someone is learning this in 2024?
The effort you are putting is something that i cannot explain how good it is, also i want to thank you cause now i think i will be able to learn programming. Please make this series a complete series for java beginner to end.
this channel has serious problem with ending
Yes I am agree for that
The way she explain is what I expect from my college teachers but they don't ....thank u shoo much for giving so much perfectionist in your lecture
Maksad nhi bhoolna hai Bhaijaan ❤️ from Karachi
This lecture really helped me a lot, I solved 50+ questions of JAVA patterns after seeing it. Thanks for such interesting lectures
really whicch year??
damn......
where did u solve these questions
@@RepublicOfGamers69 year?
@@utkarshverma3314 fek rha hai bri
pattern 1:
(other method)
public class Patterns {
public static void main(String[] args) {
int row = 6;
int column = 9;
for(int i = 1; i
for inverted and rotated half pyramid (using 2 for loops instead of 3 )
int m = 4;
int n = 4;
for (int i = 1; i < m + 1; i++) {
for (int j = 1; j < n + 1; j++) {
if (i + j > n) {
System.out.print("*");
} else {
System.out.print(" ");
}
}
System.out.println();
}
O(n3)>O(n2) ? You Win ! : You lose !
Where //outer loop and //inner loop
Where i
the fourth question is also be solved as (inverted half pyramid )
for(int i=1;i=i;j--){
System.out.print("* ");
}
System.out.println();
}
you will get the same output by using another logic.
yes , i had done like this
there is an another cool method .....for(int i =1; i
7th question me (int i=n; inti>=1;i--){
Aur inner loop Int j ko as it is rekh ke j print krke solve nhi kr skte kya....?
i got the output using your technique but got different output from her code.
Please please please dont stop this series.... Aap sabse best Samjhati ho....
Ek bar bhi na pausa karna padta h... Na hi back karna padhta h..... Sidha dimag m ghusta jata h... Too good... 1000likes for this video..
We friends are eagerly waiting for your video... So please dont stop this series
The girl with zero haters ❤
Please mam.... make a full java course for beginner.
Your training is so smart and understandable
code for right angled triangle flipped by 180 degrees:
for(int i=1;i
👍
Didi you are simply the best Tutor hats off to you😊
You are doing just amazing work legend lady. You are just sharing the premium work for free . Coding Queen Appreciated . Someday would like to hear the full story of this queen
"premium work for free"...ha ha...lol
@@universaluploader7158 why
Thank u didi
I was confused with this nested loops since i was learning C language but u made this topic so easy to understand thank you very much
Finally i know what is nested loop and how it works 😌🍻
chacha java kidar sek raha ha tu...........................
i will be going to college this september and i am glad that this remaining 3 months i am utilising just cause of you shraddha didi..thank you so much Apna College for this amazing series.
are you done with this java series?
Didi aap bahut accha smjhati hai ,
Hamare school wale sir se bhi accha smjhati hai
thank you
🙂🙂🙂
I am using a paid course from some portal and couldn’t understand this topic there. However, here , Mam made it so simple and easy to understand this in minutes, hats off your explanation and teaching style. This course is better than all the paid courses out there.
which paid course were you using if you dont mind asking. I'm thinking of joining a paid course too but cant decide
@@lisa-qk1yp I got myself geeks for geeks paid course, you can also get one!
@@lisa-qk1yp are you in college?
@@shivammagotra1636 yes . In my last year
@@shivammagotra1636 yes in my last year
The consistency and hardwork is so amazing. 👍👍Thank you didi and team apna college. 😊😊
the 5th pattern inverted half pyramid rotated by 180 degree can be written in more simpler way that is :-
public class pattern5 {
public static void main (String [] args){
int n = 4 ;
int m = 4 ;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j =i )
{
System.out.print("*");
}
else {
System.out.print(" ");
}
}
System.out.println();
}
}
}
Need this type of practice question in every topic. Hope you continue like this. And thanks for this awesome session😍
Legends learn without pc or laptop 💯
😂😂
They r not legend but fools, when it comes to pratical part ur knowledge will become null with lot's of error
Didi your videos are very nice. Your hard work is visible in your videos. Please keep it up. The future of many students is happening because of you.
Note for viewers : if anyone is using an older version of JDK then you will face problems, just now I faced a problem with pattern no 5 (Inverted & Rotated Half Pyramid) I was using JDK-8u28 and it was not showing actual output. Later i updated to JDK's latest version and the problem was solved.
Note -The code was perfect, I have even used a java visualizer for confirmation.
ya bro , I am too facing problem in pattern no 5 , and its not showing the actual output.
very useful ,,thankyou
Thank you for the information same problem I'm facing
thnx
7th Question) Code for alternate half pyramid w/ numbers can also be:
int n=5;
for(int i=5;i>=1;i--){
for(int j=1;j
I think question 5 can also have a different solution. We can do it using 2 for loops instead of 3. We can use the same inner loop to fit the spaces and the stars instead of using 2 inner loops like this:
int n = 4;
for(int i = 1; i
I did all patterns qns in C-programming but never thought this can be done this way. its unique
Good one
I guess 7th question can be solved with logic we used in 4th question.
We can use this code too:-
//Outer loop
for(int i=n; i>=1; i--){
//Inner loop for numbers
for(int j=1; j
yes bro you r right
bro , can you please help me....I didn't undersand this code you wrighting.....can u plz explain it??
Bhai n ko intialize to ker de pahle
Are bhai mene sirf loops ka logic dala hai
@@sohamdharap4789 phir thik hai.....🥲
I've never found the pattern problem so easy. Thank you !!
thank you didi .learned a lot ! excited for next class tomorrow !
Best java tutorial on TH-cam ❤
in the Second pattern, the hollow start. The condition is different in solution provided in the notes!
if(i == 0 || i == n-1 || j == 0 || j == m-1), the value of n and m is getting substracted by 1.
Because it started from 0 thats why n and m is subtracted by 1👍🏼😁
@@priyankapaul7077 absolutely
Didi you r great.....ur explanation is very understandable..........u r amazing
I need just perfect teacher like you who can explain such clearly 😢
Thank you didi your content is so amazing . Ab schme lgta hai ki ache din ayenge.
Ma'am you are just amazing.
I wish you would my teacher ❤️
Review:These vireo is much better than c++ course(pattern video)🙃
th-cam.com/video/h1HbQGHVB14/w-d-xo.html
Hmm! Mujhe laga sirf mujhe wo achhe se samajh me nhi aa raha...but Microsoft wali didi ne to bahut achhe se explain kiya😀
for prime, i think condition i*i
From yesterday on...ive started my journey to learn java along with DSA entirely along with you didi...this is my second day here with java..... #Day2 of #100DaysOfCode
Thank you very much maam. This lecture waas really helpful for me!!!
These questions are really tough at beginners' level but cannot be explained in a more simple way than yours. Thank you so much ma'am.
hello mam the day i started watching your videos .. i fell in love with you .. your teaching makes me very confident .. i forget everything when i see your smiling face ... still i m learning from you just to see you again and again ..
♥🧡🧡🧡
Time Stamps for important points 🧑💻
Pattern 01 (Solid Rectangle) -> 0:50
Pattern 02(Hollow Rectangle) -> 10:38
Pattern 03(Half Pyramid) -> 18:23
Pattern 04(Inverted Half Pyramid) -> 23:47
Pattern 05(Inverted & rotated half pyramid) -> 26:50
Pattern 06(Half Pyramid with Num) -> 33:45
Pattern 07(Inverted half Pyramid with Num) -> 38:21
Pattern 08(Flyod's Triangle) -> 44:36
Pattern 09 -> 48:45
Thanks beo
Good Job Sourik Bro
😍😍🥰🥰🥰
Don't you guys think that newbies are having trouble with these questions 😢
@@Lucky_Mishra Well I am coding in java since class 9 we had it in our syllabus. So i am completely in ease with these questions. But yes beginers can have problem with them. Try to grasp the logic -> dry run the code(execute it on pen paper) -> code it and run.
Keep coding 👍👍
**Remember the more u code and experiment with it the better you get at it**
The 6th,7th and 8th questions can be done in another approach/way:-
For q6)
for(int i=0;i
What is m
@@Anurag-hc3wb m is a variable, he just replace the "int n" to "int m"
int count=1;
for(int i=1;i
7th question me (int i=n; inti>=1;i--){
Aur inner loop Int j ko as it is rekh ke j print krke solve nhi kr skte kya....?
It will take more time .Read the space and time complexity.
Great Explanation Thank you! you are a life saver
Such a clear explanation to all questions. Thank you so much for your efforts didi, truly commendable !!
shraddha didi you are literally not less than god for it sector beginners
Mam aap bhut achhe se padate ho our achhe se samjh bhi aa jati h
Thank you so much mam
mam with your explanation i am learning java faster
you are making great efforts.
remember in your 1st lecture
we can code there patterns through "
"
without loops
System.out.println("East or west Didi is Best");
She is like a beauty with a brain😇
is this course really enough for Java placement please reply
i already seen many of your videos
your confident.and body languages arr very cool
thats give me a trust in your channel to spend time with this course
its.really helpful
I am bigner for java..I am feeling happy seeing your prosecure of study
Same here buddy
Damn..! How easily you analyse the problems.. Wow
it is basically fundamental clearing topic that is very very useful to us.
I whole heartedly appreciates and respects your hardwork didi but please increase the level of patterns bcz these were so easy, even a 9th class student of icse board studying java in school can solve this stuff, I don't know why such questions were asked, please increase the level of problems
23:50 -> I have solved Inverted Half Pyramid like this:
for (int i = 1; i
Please regularly post the lectures because I'm preparing for placement from your video.thank you 🙏🙂
Ok
Bro ,did you got placement now?
@@karthik33679 yes
The 7th question can be done in another approach/way:-
for(int i=5;i>=1;i--){
for(int j=1;j
It was a wonderful lecture with lots of learning new things (for absolute beginner like me) thank you so much Microsoft Wali Didi
Going To Start My College Life With Such A Great Mentor Shraddha Didi.
Just Like U I Also Want To Crack Microsoft in my upcoming career.
Thanks after the first few explanations I was able to solve all of it by myself
Thank you! Your way of explaining is so good and easy to understand.
didi jitna bhi tareef karu mi aapka kam hi hojayega. Best explaination for patterns till date.Hatsoff to you.
I wish I learn 20 years ago from u.excellent programing skills.
Even this topics are very useful for sem exams also not only sem even in interview also it will useful
love your way of explaining with sincerity..thanks yr
bhai itna btao sare questions mujhe hi tough lag rahe hain yaa . tough hai ???
😂meri bhi fatt gyi hai bro
@@Romeo-gg4uz 😂
are bhai tuze hi dhund raha tha.. sb bol rhe hai easy hai mja ara muze lga mai hi hu jise kuch nh smj raha hai😅
we can also write this statement to print the solid rectangle
public class Rectangle_Patern {
public static void main(String[] args){
for(int i = 1; i
Thank u so much for your good simple easy way of explaination . Please continue to make a series of complete java programming videos for beginners .❤️
ye kitne calss ka hai plz batao 😢😢
42:37 For this Pattern you can also write it in the following way-
for(int i=4;i>=0;i- -){
for(int j=1;j
One of the best tutorials on Java. Great job 👍
Which path should we give to terminal to run program for the multiple outputs.
Thank You Maam ,
Your way of Teaching is too good and it's really helpful to me. I understand all the concepts well.
Inverted & Rotated Half Pyramid : (Using 2 loops , instead of 3) :
public class Stu{
public static void main(String[] args) {
int i,j;
for(i=1;i=1;j--)
{
if(j
You are absolutely correct but using 3 loops gives more suitability to the code when we take input from users.
@@me01harish56 sabass beta bhut aye jao gye.... #fullflexbaji (just a joke)
@@realtimerdp It's just a joke, but thanks for your blessing.
@@me01harish56 hehehhehe
@@me01harish56 kon se collage main ho bro
3:10 That's what I was also thinking XD
"lekin hum utni smartness nhi dikhayenge" was so relatable XD XD
You don't have good coding skills only, you actually got some good teaching skills as well!!!❣
Don't judge other good or bad. simply wasting time here
@@sahilgjjhf bhai mene tareef he kahi ha or kuch toh nahi kaha
@@akr.... Im just read half paragraph so because I will not wast my time here to read such useless comment like u send go and do some work man don't wast ur time by judging two people duff
Amazing way of teaching, understood each and every problem very clearly.
I am the who was watching this before exam😂
Us moment bhai
✋😂
Us bro
Same here 😂
dhng s English likh le😂
inverted half pyramid
public class StarPatterns {
public static void main(String[] args) {
for (int i = 1; i
Thanks Didi for this amazing and wonderful course!
This is the hardest lecture in my thinking🧐
The resources we r getting are really very helpful ❤️❤️❤️❤️❤️thanks a lot diii❤️
very good teaching
Really awesome videos no words to say . Please do videos on Devops, and cloud technologies.
(HomeWork)Print a number of Pyramid:
class Main {
public static void main(String[] args) {
int m=5;//column
int n=5;//row
int s=m;
for(int i=1;i
I'm from Pakistan mujhai ap k samjha ne ka tareeka bht pasand h this video is very helpful to me. Thank you!
Waiting for next lecture eagerly 🔥🔥
Thank you so much
Tomorrow is my computer exam of icse 10th class board and I am watching the lecture right now 😅😅😅.
Same here bro😂
for pattern no 4, we can also do this:-
int n=4;
for(int i=1;i=i;j--)
{
System.out.print("* ");
}
System.out.println();
}
Simple code of = Inverted Half Pyramid with Numbers - 38:21
public class rectangle {
public static void main(String[] args) {
int n=5;
for (int i=n; i>=1; i--){
for (int j=1; j
The Inverse Triangle pattern helped in my Assignment of "Introduction to Computer Science" from Harvardx (Harvard University) ,Thanks
Doing these java series can I learn whole Java??
when I learnt java I used to run away from these patterns but after this lecture I am quite confident now to face them.
Best channel for ICSE computer Class 10
Thankyou so much.I completed my graduation but every time confused .But when I started to watch your video All thing cleared out . Thankyou
THANK YOU SO MUCH for this amazing tutorial.
Great teaching skills. love from Pakistan.🇵🇰❤