Tech Travel
Tech Travel
  • 22
  • 224 639
Strivers A2Z DSA Sheet Pattern Series Problem 4 in Java
This video is made for educational purpose in which we are going to solve striver's A2Z dsa sheet from beginning. We are using Java for solving these problems.
#striver #dsa #coding #india #job #freshers #beginners #programming #java
Переглядів: 20

Відео

Strivers A2Z DSA Sheet Pattern Series Problem 3 in Java
Переглядів 235 місяців тому
This video is made for educational purpose in which we are going to solve striver's A2Z dsa sheet from beginning. We are using Java for solving these problems. #striver #dsa #coding #india #job #freshers #beginners #programming #java
Strivers A2Z SDE Sheet Pattern Series Problem 2 in Java
Переглядів 155 місяців тому
This video is made for educational purpose in which we are going to solve striver's A2Z dsa sheet from beginning. We are using Java for solving these problems. #striver #dsa #coding #india #job #freshers #beginners #programming #java
Strivers A2Z DSA Sheet Problems Pattern Series Problem 1 in Java
Переглядів 645 місяців тому
This video is made for educational purpose in which we are going to solve striver's A2Z dsa sheet from beginning. We are using Java for solving these problems. #striver #dsa #coding #india #job #freshers #beginners #programming #java
Printing Patterns in C language
Переглядів 822 роки тому
Printing Patterns in C language

КОМЕНТАРІ

  • @rayyan-045
    @rayyan-045 19 днів тому

  • @soumyap9552
    @soumyap9552 Місяць тому

    Which ide you use for c

  • @gummachaitanya9241
    @gummachaitanya9241 2 місяці тому

    Wrong code

  • @GOWRIN-tn6ux
    @GOWRIN-tn6ux 2 місяці тому

    if i give n=17, i got output like 17 is not a prime...why..????

  • @gamersghost_
    @gamersghost_ 5 місяців тому

    Nice 👍👍👍

  • @pedrogarcia-yv4vv
    @pedrogarcia-yv4vv 8 місяців тому

    Gracias bro ❤️

  • @bhanuprakashpattabhi7038
    @bhanuprakashpattabhi7038 8 місяців тому

    Super

  • @Angelraaga
    @Angelraaga 8 місяців тому

    Jesus is the only true living GOD Jesus is the only way to heaven Accept Jesus Escape Hell

  • @Angelraaga
    @Angelraaga 8 місяців тому

    Jesus is the only true living GOD Jesus is the only way to heaven Accept Jesus Escape Hell

    • @tech_travel_
      @tech_travel_ 8 місяців тому

      Jai Shree Ram 🚩🚩🚩

    • @prithyankasatheeshkumar2407
      @prithyankasatheeshkumar2407 8 місяців тому

      Guys what does jesus and ram had to do with C programing chill 😅😅😅

    • @-kousalya-
      @-kousalya- 7 місяців тому

      😂😂

    • @shibamcoss
      @shibamcoss 6 місяців тому

      I don't understand this types of Morons with their fairy tales and kid mentality...

    • @Blackoutfor10days
      @Blackoutfor10days 5 місяців тому

      Jai mahakal 🔱🖤🏴🏴

  • @laptopworm23
    @laptopworm23 9 місяців тому

    I LOVEE THIS APPROACH!

  • @KeerthanabmKeerthi
    @KeerthanabmKeerthi 9 місяців тому

    Here why you taking ( count==2) this step is not understanding

    • @tech_travel_
      @tech_travel_ 9 місяців тому

      Read the definition of prime numbers you'll understand it.

  • @weareone8762
    @weareone8762 10 місяців тому

    Is that user-defined function ?

  • @BahadurNepal-x7e
    @BahadurNepal-x7e 10 місяців тому

    Noob haha🤨🤨🤨🤨🤨

    • @tech_travel_
      @tech_travel_ 10 місяців тому

      Yes it's for noobs only. If you're a pro you shouldn't be watching and commenting(mocking) :)

    • @TheHomelander2099
      @TheHomelander2099 9 місяців тому

      Every pro was once a noob 😔💔

  • @a2thegenius343
    @a2thegenius343 11 місяців тому

    Nice code but I have a suggestion If you check for(i=1:i<n/2:i++) it will take less time and result will be same

    • @tech_travel_
      @tech_travel_ 11 місяців тому

      Yes but as this program is for beginners a simple one is good for them.

    • @vicentedarras4339
      @vicentedarras4339 10 місяців тому

      sqrt(n) is even faster ;)

  • @MemesKiduniya0001
    @MemesKiduniya0001 11 місяців тому

    can you plz explain me its logic plz it helps me alot to understand

    • @tech_travel_
      @tech_travel_ 11 місяців тому

      Its simple we are running the loop from 1 to the number itself. And we know if a number is divisible by 1 and itself then it is a prime number so when we divide the given number by 1 till the number itself and we keep a counter that is incremented whenever the given number is divided it will increment. So if the counter value is 2 then that means it was only divided by 1 and itself and no other number in between hence it is prime else if the counter value is more than two it means it was also divided by some other number hence it is not prime.

  • @jaytakalgavankar6918
    @jaytakalgavankar6918 11 місяців тому

    T❤🎉

  • @alone7463
    @alone7463 Рік тому

    #include <stdio.h> int main() { int num, i, a= 1; printf("Enter a number: "); scanf("%d", &num); if (num <= 1) { a = 0; } else { for (i = 2; i < num; i++) { if (num % i == 0) { a = 0; } } } if (a) { printf("%d is a prime number ", num); } else { printf("%d is not a prime number ", num); } return 0; }

    • @khaledanjo6133
      @khaledanjo6133 11 місяців тому

      thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

    • @tech_travel_
      @tech_travel_ 11 місяців тому

      If you are running the loop from 2 then why to run till n-1? Just run till n/2 it will be optimized.

    • @alone7463
      @alone7463 11 місяців тому

      @@tech_travel_ i excluded 1 cause its not a prime number but it was not necessary as I have already mentioned 1 is not a prime number .I did not get the second part 🙂

    • @gamersghost_
      @gamersghost_ 11 місяців тому

      ​@@alone7463Here, note that we are looping from 2 to num/2. It is because a number is not divisible by more than its half.

    • @alone7463
      @alone7463 11 місяців тому

      @@gamersghost_ I get it ,thanks but if i use <n its still gonna give me right answer

  • @bijetarai1789
    @bijetarai1789 Рік тому

    2 is also a prime number 😮

    • @vanshaggarwal1498
      @vanshaggarwal1498 10 місяців тому

      2 is prime but count is a different value we stored the number in n variable

  • @LangageC-k2u
    @LangageC-k2u Рік тому

    ❤❤❤

  • @romanempire2211
    @romanempire2211 Рік тому

    It is only for 3 digit not for general

  • @PCM_LOVER
    @PCM_LOVER Рік тому

    What if i enter 0 or 1 ?? 🙏

    • @tech_travel_
      @tech_travel_ Рік тому

      It will print only 0 and 1. The loop will not run.

  • @karlenegreene2118
    @karlenegreene2118 Рік тому

    can you do the psuedocode verson in this

  • @YashSingh-t4o
    @YashSingh-t4o Рік тому

    Thanks

  • @victorsailo9036
    @victorsailo9036 Рік тому

    Show the full screen

  • @sufyansufyan3909
    @sufyansufyan3909 Рік тому

    Nice video it help me in my exams

  • @Mootiivaation
    @Mootiivaation 2 роки тому

    Output is missing

    • @tech_travel_
      @tech_travel_ 2 роки тому

      Sorry output part got cut in the editing.. The program is correct try it yourself you'll definitely get the output...

  • @nebuladevelopments
    @nebuladevelopments 2 роки тому

    Make sure to format your code in a nice manner, add a return statement, and add a newline to the end of hello world

    • @tech_travel_
      @tech_travel_ 2 роки тому

      Thanks for your comment.. I don't see here any big formatting problem and this program is for absolute beginner so i didn't add the return statement so that they don't get confused or whatsoever... However you can get return statements in all other shorts... Will try to make much cleaner content... ❤

  • @gamersghost_
    @gamersghost_ 2 роки тому

    Great!!!

  • @tech_travel_
    @tech_travel_ 2 роки тому

    For more short coding videos checkout ua-cam.com/play/PLyHVWchXWnPXZPCLS0MiANUOV_SFfFqYg.html

  • @tech_travel_
    @tech_travel_ 2 роки тому

    For more short coding videos checkout ua-cam.com/play/PLyHVWchXWnPXZPCLS0MiANUOV_SFfFqYg.html

  • @tech_travel_
    @tech_travel_ 2 роки тому

    For short coding videos checkout ua-cam.com/play/PLyHVWchXWnPXZPCLS0MiANUOV_SFfFqYg.html

  • @tech_travel_
    @tech_travel_ 2 роки тому

    For more short coding videos checkout ua-cam.com/play/PLyHVWchXWnPXZPCLS0MiANUOV_SFfFqYg.html

  • @tech_travel_
    @tech_travel_ 2 роки тому

    For more short coding videos checkout ua-cam.com/play/PLyHVWchXWnPXZPCLS0MiANUOV_SFfFqYg.html

  • @tech_travel_
    @tech_travel_ 2 роки тому

    For more short coding videos visit ua-cam.com/play/PLyHVWchXWnPXZPCLS0MiANUOV_SFfFqYg.html

  • @tech_travel_
    @tech_travel_ 2 роки тому

    For more short coding videos visit ua-cam.com/play/PLyHVWchXWnPXZPCLS0MiANUOV_SFfFqYg.html

  • @tech_travel_
    @tech_travel_ 2 роки тому

    For more short coding videos visit ua-cam.com/play/PLyHVWchXWnPXZPCLS0MiANUOV_SFfFqYg.html