Solving Programming Problems

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ •

  • @jmoney1139
    @jmoney1139 7 років тому +29

    This video was so worth it just to learn the wolfram alpha trick if nothing else lol, so glad I found out about that now. I can see it save me much time in the future

    • @derekbanas
      @derekbanas  7 років тому +5

      Thank you :) I'm glad it helped

  • @Aaron-sy5yx
    @Aaron-sy5yx 6 років тому +55

    "I'm going to pretend I don't know anything about math". Proceeds to fetch some complicated formula. Bruh

  • @derekbanas
    @derekbanas  11 років тому +1

    I'm sorry I don't understand the question. Post any questions that you have and I'll try to help

  • @derekbanas
    @derekbanas  11 років тому +1

    Thank you :) You're very kind for saying that! Ill continue to try and do my best.

  • @derekbanas
    @derekbanas  11 років тому

    Thank you very much :) I do my best to cover everything in my tutorials. I'm glad you liked it

  • @derekbanas
    @derekbanas  11 років тому

    I start every large project and most small ones with uml diagrams. Anything can be solved if you break everything down into a small series of steps. I worked on QuickTime forever and a day ago. We solved everything in uml. The code is easy after that is finished

  • @derekbanas
    @derekbanas  11 років тому +1

    I was demonstrating a way to make calculations of nearly any form. It wasn't meant to be optimized, but instead easy to do with little thought. Sorry I didn't explain that better

  • @derekbanas
    @derekbanas  11 років тому +1

    I'll do my best to fit it in. I have literally hundreds of requests I'm doing my best to get done. Android is next and it will start next week at the latest

  • @derekbanas
    @derekbanas  11 років тому

    Yes great point. I was trying to teach how to solve problems in a structured way no matter how hard the problem is. I actually did some of the math for trees in the beginning of this tutorial, but I decided not to use it to help.

    • @anonymous-zf1qm
      @anonymous-zf1qm 4 роки тому

      Hi!! Is this problem similar to the problem that software engineer solves?

  • @123japanuser
    @123japanuser 11 років тому

    Pozdrav Dragi trener,
    Ona je postala tako uobičajena za mene očekivati ​​video dan.
    Ja sam tako sretan da biste dobili još jednu :))
    Najpredaniji izgubio zlato za 15 minuta.
    Možda moram reći osvojio srebro.
    Sretan dobiti na pobjedničkom postolju.
    Pazite i hvala za sve što činite.

  • @luisriba8082
    @luisriba8082 9 років тому +7

    I don't know how you code so fast and make it perfect. My respect. I really want to get that good at it. Sir.

    • @derekbanas
      @derekbanas  9 років тому +5

      Luis Riba Keep practicing. I'm actually writing code from a sequence diagram. I have tutorials on how to create them. it makes life very easy.

  • @derekbanas
    @derekbanas  11 років тому

    I'd love to do a tutorial series on how to solve problems. I don't think there is even a book on the process? The next video will work through the process of making this code even better using simple logic as well

  • @GeloEd
    @GeloEd 9 років тому +9

    This one is my favorite of your java tutorials.

  • @derekbanas
    @derekbanas  11 років тому

    It's pretty neat :) I use it all of the time when I don't want to think

  • @derekbanas
    @derekbanas  11 років тому

    It will start around Thursday. I have just one more algorithm tutorial for now on heaps

  • @derekbanas
    @derekbanas  11 років тому

    Here is my UML tutorial if that helps ua-cam.com/video/OkC7HKtiZC0/v-deo.html

  • @watcbd
    @watcbd 11 років тому

    At this point I just click LIKE before I even start the video. Thanks Derek Banas!

  • @sachdevacreations7574
    @sachdevacreations7574 7 років тому +4

    You can do 7,3,1,0 by dividing each next number by 2 as c compiler doesnt print the number after decimal.

  • @derekbanas
    @derekbanas  11 років тому +1

    Thank you :) I try to do my best and improve from video to video

  • @derekbanas
    @derekbanas  11 років тому

    I do my best to make the process useful for all oop languages. What language are you using?

  • @derekbanas
    @derekbanas  11 років тому +1

    VB is pretty much an OOP language. I wish I could go into programming with it, but I'm a little overwhelmed by other tutorials right now

  • @derekbanas
    @derekbanas  11 років тому

    Thank you :) It is starting in a few days. I'll do my best

  • @derekbanas
    @derekbanas  11 років тому

    Thank you :) Yes, it is kind of a hard topic to teach. It is quite hard to teach people how to think

  • @derekbanas
    @derekbanas  11 років тому

    Those tutorials are in the works and will be coming soon

  • @robinzclark
    @robinzclark 5 років тому

    You are my hero. This is one of the very best videos I've ever watched. So clear and simple. I would like to see more videos like this for different problems. There are some codility and code wars problems that I did not understand how people arrived at the solutions. Specifically the genomic range query on codility problem I can not understand a simple solution after almost a week of study. Another problem I have struggled with the past week is the supermarket queue problem on codewars.

    • @derekbanas
      @derekbanas  5 років тому

      Thank you very much :) I'll see what I can do about your requests

  • @derekbanas
    @derekbanas  11 років тому

    Check out my object oriented design and uml tutorial. They'll provide most everything you need. Soon I'll be making very large programs that will demonstrate the process further

  • @derekbanas
    @derekbanas  11 років тому

    That is a very big answer. I will cover math in the future. I have big plans

  • @moofymoo
    @moofymoo 8 років тому +4

    1:04 - I don't see how this will help to solve NP-hard problem.

  • @hennabuzzz8687
    @hennabuzzz8687 3 роки тому

    Complex to simple
    Great explanation with the actual flow of the transformation of code (from words)

  • @derekbanas
    @derekbanas  11 років тому

    I have that topic on the list. I plan on covering C++ soon. I think I may make it while I make android tutorials

  • @derekbanas
    @derekbanas  11 років тому

    I'm glad you liked it :)

  • @sydethsam
    @sydethsam 11 років тому

    This is a really good tutorial. I cannot wait for your next one that relate to this one.

  • @niksen3300
    @niksen3300 8 років тому +4

    Which chapter of math should i look into to figure how to create my own algorithm for series like that?
    What other chapters do you usually find yourself in need to accomplish some problem solution?
    Thanks for the awsome content

    • @derekbanas
      @derekbanas  8 років тому +6

      Discrete mathematics probably helps best for programmers

  • @derekbanas
    @derekbanas  11 років тому

    Thank you very much :) I do my best to make the videos interesting

  • @axman1000
    @axman1000 11 років тому

    Also, to have an advanced tutorial, where you show these data structures the way they are implemented in Java - like how Hash Maps, Trees and other data structures have Java implementations. You could probably do one on each and explain each of the methods associated with the structures. Just a thought.

  • @akbaralam8683
    @akbaralam8683 8 років тому +2

    this is the best lesson by far i have seen in YT . thanks a lot man

    • @derekbanas
      @derekbanas  8 років тому +1

      Thank you very much :)

  • @derekbanas
    @derekbanas  11 років тому +1

    You're very welcome :)

  • @derekbanas
    @derekbanas  11 років тому +1

    Thank you :) You're very welcome

  • @circuitfreak24
    @circuitfreak24 11 років тому

    best programming tutorial in youtube :)

  • @derekbanas
    @derekbanas  11 років тому

    Thank you :) It was fun to make

  • @derekbanas
    @derekbanas  11 років тому

    Thank you for the ideas :) Ill see what I can come up with

  • @derekbanas
    @derekbanas  11 років тому

    Thank you :) I try to do my best

  • @derekbanas
    @derekbanas  11 років тому

    Salaries for programmers differ greatly even for pretty much the same job. I know one guy who makes $40k and another that makes $120k for exactly the same job. Depending on where you live also makes a major difference. I'm sorry, but that is a question that I can't answer

  • @shhagley
    @shhagley 6 років тому

    Thank you for this,simple way to solve problem, english to math to code

  • @derekbanas
    @derekbanas  11 років тому

    Thank you :) Android should out by next Thursday

  • @yoshi656
    @yoshi656 7 років тому

    Thank you for the tutorial.
    Where can I find the custom implementation of the Heap class (having the percolate() method)?
    Later Edit: I found it around minute 9:37 but it's missing the generateFilledArray() method.

  • @derekbanas
    @derekbanas  11 років тому

    Thank you :) I try my best

  • @derekbanas
    @derekbanas  11 років тому

    Thank you :) It will be up tomorrow

  • @blognewb
    @blognewb 11 років тому

    This is so so important. Thank you sir, please expound more on this, planning/ uml design on programming

  • @hier0phant336
    @hier0phant336 11 років тому +2

    Thanks, it's really good to focus on the "how" not the what all the time. :)

    • @derekbanas
      @derekbanas  11 років тому +1

      I'm glad you found it useful and I definitely agree :)

  • @salarali6124
    @salarali6124 6 років тому

    Programming is difficult but it can be easier if we take interest in computer. I at first lost hope that i cannot learn programming but my father gave me hope and I with my dad support, learning programming.

    • @derekbanas
      @derekbanas  6 років тому

      If I can learn to program anyone can. It is awesome that your Dad is helping :)

    • @salarali6124
      @salarali6124 6 років тому

      Thx and u are right.
      We all are humans

    • @salarali6124
      @salarali6124 6 років тому

      Derek Banas i am launching a youtube channel soon and i am hundred percent sure i will get more than 10M view per video. I offer you to join.

  • @shrimpboyho
    @shrimpboyho 11 років тому

    Derek you should really do a learn git in 30 minutes tutorial, similar to your learn JavaScript in 30 minutes tutorial. I think it would help a lot of budding developers. And I was wondering if you had any plans to do some C++ tutorials similar to these data structures tutorials.

  • @derekbanas
    @derekbanas  11 років тому

    Yes -2^-1 is correct

  • @derekbanas
    @derekbanas  11 років тому +1

    I always try to get computers to do all my thinking for me :)

  • @Truthiness231
    @Truthiness231 11 років тому

    I actually never thought about using Wolfram Alpha in that way... yet something else I've been doing manually that computers could have been doing for me for years now...

  • @blognewb
    @blognewb 11 років тому

    I think a video series on "Best Practices in programming" would be great.. like per language too.. best practices in php etc, is that good?

  • @pranavpawar7792
    @pranavpawar7792 8 років тому

    Thanks Thanks a lot Sir!!!! you are really the greatest teacher at least for me..... once again thanks

    • @derekbanas
      @derekbanas  8 років тому

      +pranav pawar Thank you :) You're very welcome

  • @woulfe42
    @woulfe42 4 роки тому +1

    I understand his logic and steps he took, he made it look easy but, perhaps this os not the best way to begin as a beginner this is usually for someone that is novice perhaps.

  • @RedEyedJedi
    @RedEyedJedi 7 років тому

    Excellent tutorial as always and thank you for the wolfram alpha site. What an amazingly useful site :)

    • @derekbanas
      @derekbanas  7 років тому +1

      Thank you :) I'm glad you found that tip useful

  • @arthurmee
    @arthurmee 11 років тому

    Android . . . . excellent Derek. Looking forward to it. Thanks.

  • @KruszonTv
    @KruszonTv 11 років тому

    If i may suggest, Spring/Spring MVC tutorials i would love to watch

  • @kennyhendricks4293
    @kennyhendricks4293 7 років тому

    This awesome Derek, You make me wanna play more with Haskell lol

  • @axman1000
    @axman1000 11 років тому

    Hi Derek, how about doing a tutorial on the newer technologies like Hadoop, HBase, Hive etc? Would really increase your visibility and of course, your fan base! :)

  • @DevoAjit
    @DevoAjit 10 років тому +1

    great tutorial, gave a lot of ideas to me. thank you so much. :)

    • @derekbanas
      @derekbanas  10 років тому

      Ajit Gupta Thank you :) I'm glad it helped.

  • @sbasalan
    @sbasalan 11 років тому

    Thanks a lot for providing UML serious link

  • @LalakaJeerasinghe
    @LalakaJeerasinghe 11 років тому

    Thank you!
    Was looking forward for this badly :)

  • @sbasalan
    @sbasalan 11 років тому

    I got some documents about UML and I will study some this weekend. Hope you start VB.net sooner

  • @sirtien
    @sirtien 11 років тому

    Nice work as usual!

  • @drkcaey
    @drkcaey 11 років тому

    Hi, I'm preparing for senior year next year and I have a question that might be irreverent to this tutorial. If I were to go into the programming career, will I be earning as much as other computer network engineers? (In the sense of average.)

  • @sbasalan
    @sbasalan 11 років тому

    I must a good start somewhere of UML but your tutorials related with Java. It might makes me a lil confuse

  • @fennecinspace
    @fennecinspace 5 років тому +1

    this video is more complicated than it needs to be ...

  • @derekbanas
    @derekbanas  11 років тому

    You're welcome :)

  • @omerufuk
    @omerufuk 10 років тому

    So good! only lack is that the name of the video. hard to find this video by searching on google or on youtube...

  • @guru3750
    @guru3750 8 років тому

    Derek, thanks again for making a great tutorial! One question: in programming competitions, i.e, the Informatics Olympiad, we do not have access to Wolfram Alpha. Are there any fast ways of calculating or designing an algorithm? Are there any resources you can refer me to? Thanks!
    EDIT: I saw this course by MIT on Discrete Maths: ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-042j-mathematics-for-computer-science-spring-2015/ . However, I've not done calculus, trig, or Algebra 2 (only Algebra 1), so what's your take on it?

    • @derekbanas
      @derekbanas  8 років тому

      Thank you :) Discrete mathematics is basically the most important form of mathematics for programmers, so definitely check that out. I used Wolfram Alpha just to help people that may not be gifted in math. The only way to get good at math and designing algorithms is to practice and to read about algorithms others have made.

  • @ShamrockBones0804
    @ShamrockBones0804 11 років тому

    When comes the annotations tutorial?

  • @vedicWayOfLiving
    @vedicWayOfLiving 7 років тому

    Wonderful Teacher....

  • @abdelsid1575
    @abdelsid1575 6 років тому +2

    do u have minecraft that green block

  • @JoshT4life
    @JoshT4life 5 років тому

    I'm sorry new to the channel but how do we know what to fetch here? I'm trying to learn how to solve for algorithms and problems but going to a website and knowing what to fetch doesn't sound like the solution

    • @derekbanas
      @derekbanas  5 років тому

      I'm trying to show interesting ways that you can solve problems in this tutorial. Most every programmer has tricks they use to solve problems and I'm passing a few on in this series of videos.

  • @chefjeffsf
    @chefjeffsf 7 років тому

    you are on another level

    • @derekbanas
      @derekbanas  7 років тому

      Thank you for the compliment :) I try to do my best

  • @SaintMartini2008
    @SaintMartini2008 7 років тому

    HEY! What is that website that you used to find the calculation? What is the main purpose of that site? Thank u!

    • @derekbanas
      @derekbanas  7 років тому

      I was just showing a trick for people that aren't gifted in math. www.wolframalpha.com/

  • @ashvedlochun8240
    @ashvedlochun8240 9 років тому

    Derek how do you get so good to think like this to solve problem??

    • @derekbanas
      @derekbanas  9 років тому +3

      +Ashved Lochun Study my object oriented design, design patterns, algorithm and refactoring tutorials. Then write lot of code.

    • @ashvedlochun8240
      @ashvedlochun8240 9 років тому

      +Derek Banas THanks Derek God bless you (Y) In fact im a bit poor in Java ANd c++ and i hoping your tutorials help me out greatly

  • @theamjolnir9641
    @theamjolnir9641 6 років тому

    If you don't use wolfram alpha how would you approach this problem?

  • @DrStrangeLove2050
    @DrStrangeLove2050 11 років тому

    How did Wolfram Alpha get those formulae?? What method did they use??

  • @younus6133
    @younus6133 8 років тому

    Hey,your tutorials are awesome,can you give any link to learn algorithms which helps me in speed programming competition . Thanx :)

    • @derekbanas
      @derekbanas  8 років тому +1

      Thank you very much :) Here is my algorithms tutorial ua-cam.com/video/f5OD9CKrZEw/v-deo.html

  • @Shaggy12321
    @Shaggy12321 6 років тому

    I have a degree in computer science and I didn't understand a bit of this, how did that random calculation help?

    • @techno-trickster636
      @techno-trickster636 6 років тому

      ua-cam.com/video/3No1Eidsx98/v-deo.html
      use this tutorial for built your concept,it's really helpful

  • @danieltiotuico2487
    @danieltiotuico2487 9 років тому

    Sir, do you have a tutorial that would cover c#? or better that would help me out in passing MCSD exam [70-483] ?

    • @derekbanas
      @derekbanas  9 років тому

      +Daniel Tiotuico I cover C# in one video here ua-cam.com/video/lisiwUZJXqQ/v-deo.html

  • @derekbanas
    @derekbanas  11 років тому

    Thank you :)

  • @herp_derpingson
    @herp_derpingson 11 років тому

    Cool! I am going to show this video to my friend who desperately needs something like this :D

  • @sbasalan
    @sbasalan 11 років тому

    You are saying good things about that but I dont know anything about UML structures that's my issue and lackness at the begin while we think.

  • @Patil629
    @Patil629 8 років тому

    For indent you could have done (2^(n-1)) - 1

    • @Patil629
      @Patil629 8 років тому

      For n being the row number from bottom

  • @mehrinisokamalova3327
    @mehrinisokamalova3327 6 років тому

    Firstfull thanks for your tutorials. Its absolutely helps to learn programming and I really enjoy it. For this video, I'm a bit confused why did you calculate maxIndexPerRow. Can you explain it a little more.

    • @derekbanas
      @derekbanas  6 років тому

      Sorry, but i don't see that in the code

    • @mehrinisokamalova3327
      @mehrinisokamalova3327 6 років тому

      12:46min, 104th line of code: maxIndexToPrint = indexToPrint+itemsPerRow

    • @derekbanas
      @derekbanas  6 років тому

      That tells me what index number I need to print up for each row of the tree

  • @jordaneng1189
    @jordaneng1189 5 років тому

    This would be the biggest troll if the end of the video provided no solution.

  • @vishnupriyan987
    @vishnupriyan987 5 років тому

    Really I like your wolfram alpha trick

  • @derekbanas
    @derekbanas  11 років тому

    I added the request to the list. I have to cover Android first because I have been promising it. If I don't I might be hunted down and killed :)

  • @Mireda-wr3yc
    @Mireda-wr3yc 10 років тому

    please , could you tell me , how i solve a problem that i have , i used repaint() function,,, and i want my paint to stay in the panel when i resize my frame because it's disapear when i resize the frame :(

    • @TheUnofficialGamer22
      @TheUnofficialGamer22 10 років тому

      It would be draw(); instead of repaint(); if you want to keep previous things on screen

    • @techno-trickster636
      @techno-trickster636 6 років тому

      ua-cam.com/video/3No1Eidsx98/v-deo.html
      Use this complete tutorial to build your concept in Java algorithm.

  • @kasszee261
    @kasszee261 8 років тому

    Great tutorial! *thumbs up* :)

  • @preetindersingh3396
    @preetindersingh3396 11 років тому

    What about IPO Input, output, processing and data

  • @DrStrangeLove2050
    @DrStrangeLove2050 11 років тому

    04:48 Your mistake - it's negative power -n !
    I evaluated your wrong expression at n=1 and got really confused... (i got 28 instead of 7)

  • @Memo-windowsBlogspot
    @Memo-windowsBlogspot 6 років тому

    what is the best program for c++ in win 10

    • @derekbanas
      @derekbanas  6 років тому

      I like NetBeans. I show how to set it up here ua-cam.com/video/DamuE8TM3xo/v-deo.html

  • @ToPFeE1234
    @ToPFeE1234 7 років тому

    Thanks for the trink man. It's help.