Solving Programming Problems
HTML-код
- Опубликовано: 17 окт 2024
- Ge the Code Here: goo.gl/R6R1F
To finish off my Java Algorithm tutorial, I thought it would be interesting to cover solving programming problems in general. So, in this tutorial I'll answer the question I've been getting, which is how to print a tree data structure.
On our journey to better understand how to solve problems I will first solve the basic problem. Then in the next part of the tutorial I will perfect printing any type of tree. The code above will better explain the process of solving this problem.
I'm sorry I don't understand the question. Post any questions that you have and I'll try to help
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
Thank you :) I'm glad it helped
I do my best to make the process useful for all oop languages. What language are you using?
"I'm going to pretend I don't know anything about math". Proceeds to fetch some complicated formula. Bruh
lol focus on the tutorial 😂
😂😂😂😂😂😂😂😂😂
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
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
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
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
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.
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.
Thank you :) You're very kind for saying that! Ill continue to try and do my best.
It will start around Thursday. I have just one more algorithm tutorial for now on heaps
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.
Hi!! Is this problem similar to the problem that software engineer solves?
You can do 7,3,1,0 by dividing each next number by 2 as c compiler doesnt print the number after decimal.
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.
Thank you very much :) I'll see what I can do about your requests
Thank you very much :) I do my best to cover everything in my tutorials. I'm glad you liked it
This one is my favorite of your java tutorials.
+An-gelo Edquila Thank you :)
An-gelo Edquil a
Thank you :) Yes, it is kind of a hard topic to teach. It is quite hard to teach people how to think
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.)
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.
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
Discrete mathematics probably helps best for programmers
Complex to simple
Great explanation with the actual flow of the transformation of code (from words)
At this point I just click LIKE before I even start the video. Thanks Derek Banas!
Thank you :) I try to do my best and improve from video to video
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
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.
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.
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
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?
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.
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
It's pretty neat :) I use it all of the time when I don't want to think
Thank you :) It is starting in a few days. I'll do my best
Here is my UML tutorial if that helps ruclips.net/video/OkC7HKtiZC0/видео.html
I have that topic on the list. I plan on covering C++ soon. I think I may make it while I make android tutorials
This is a really good tutorial. I cannot wait for your next one that relate to this one.
If you don't use wolfram alpha how would you approach this problem?
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.
Those tutorials are in the works and will be coming soon
HEY! What is that website that you used to find the calculation? What is the main purpose of that site? Thank u!
I was just showing a trick for people that aren't gifted in math. www.wolframalpha.com/
Thank you very much :) I do my best to make the videos interesting
Thank you for this,simple way to solve problem, english to math to code
I'm happy it helped :)
I have a degree in computer science and I didn't understand a bit of this, how did that random calculation help?
ruclips.net/video/3No1Eidsx98/видео.html
use this tutorial for built your concept,it's really helpful
This is so so important. Thank you sir, please expound more on this, planning/ uml design on programming
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?
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.
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 :(
It would be draw(); instead of repaint(); if you want to keep previous things on screen
ruclips.net/video/3No1Eidsx98/видео.html
Use this complete tutorial to build your concept in Java algorithm.
That is a very big answer. I will cover math in the future. I have big plans
Sir, do you have a tutorial that would cover c#? or better that would help me out in passing MCSD exam [70-483] ?
+Daniel Tiotuico I cover C# in one video here ruclips.net/video/lisiwUZJXqQ/видео.html
I'm glad you liked it :)
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.
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.
If I can learn to program anyone can. It is awesome that your Dad is helping :)
Thx and u are right.
We all are humans
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.
this is the best lesson by far i have seen in YT . thanks a lot man
Thank you very much :)
Thanks, it's really good to focus on the "how" not the what all the time. :)
I'm glad you found it useful and I definitely agree :)
how to solve this problem pls help me, java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES). i have only mysql command line client
best programming tutorial in youtube :)
hlw sir actually I am totally confused to learn about java, which part i initiate in java
+Jems Bond Here is my Java video tutorial ruclips.net/video/TBWX97e1E9g/видео.html
ruclips.net/video/3No1Eidsx98/видео.html
Use this complete tutorial to build your concept in Java algorithm.
Thanks a lot for providing UML serious link
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...
Yes -2^-1 is correct
How did Wolfram Alpha get those formulae?? What method did they use??
So good! only lack is that the name of the video. hard to find this video by searching on google or on youtube...
Android . . . . excellent Derek. Looking forward to it. Thanks.
I have a problem. I am not able to write solution for hackerranks questions. Help
ruclips.net/video/3No1Eidsx98/видео.html
Use this complete tutorial to build your concept in Java algorithm.
If i may suggest, Spring/Spring MVC tutorials i would love to watch
You're very welcome :)
I must a good start somewhere of UML but your tutorials related with Java. It might makes me a lil confuse
what is the best program for c++ in win 10
I like NetBeans. I show how to set it up here ruclips.net/video/DamuE8TM3xo/видео.html
Thank you :) Android should out by next Thursday
Thanks Thanks a lot Sir!!!! you are really the greatest teacher at least for me..... once again thanks
+pranav pawar Thank you :) You're very welcome
1:04 - I don't see how this will help to solve NP-hard problem.
Does this apply to all programming languages? :P
+BiiXteR Gaming Yes pretty much
Derek Banas Alright :)
Derek how do you get so good to think like this to solve problem??
+Ashved Lochun Study my object oriented design, design patterns, algorithm and refactoring tutorials. Then write lot of code.
+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
Thank you :) I try to do my best
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! :)
Thank you :) It was fun to make
Thank you :) You're very welcome
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
Hey,your tutorials are awesome,can you give any link to learn algorithms which helps me in speed programming competition . Thanx :)
Thank you very much :) Here is my algorithms tutorial ruclips.net/video/f5OD9CKrZEw/видео.html
do u have minecraft that green block
I got some documents about UML and I will study some this weekend. Hope you start VB.net sooner
I always try to get computers to do all my thinking for me :)
Do you have something similar but in Ruby?
I have a Ruby tutorial ruclips.net/video/Dji9ALCgfpM/видео.html
Ok, no worries. I had already watched that one and still having trouble solving these types of problems with Ruby. Thanks for the reply!
Thank you for the ideas :) Ill see what I can come up with
Thank you :) It will be up tomorrow
Thank you :) I try my best
great tutorial, gave a lot of ideas to me. thank you so much. :)
Ajit Gupta Thank you :) I'm glad it helped.
why does iteration have to start at 1? A trees iteration should start at 0.
Something generic?
Excellent tutorial as always and thank you for the wolfram alpha site. What an amazingly useful site :)
Thank you :) I'm glad you found that tip useful
When comes the annotations tutorial?
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)
This awesome Derek, You make me wanna play more with Haskell lol
That's funny :)
What about IPO Input, output, processing and data
Why did you choose -2^(-n) (-16 + 2^n). I mean if i would try to solve it I wouldn't know which one to choose on wolframalpha.
You just put in what output do you want. Like in the video: He needed 7,3,1,0. You cant sit down and manually design a series that would give you the output as 7,3,1,0. So you enter the output on Wolfram Alpha and it will create the formula for you, so you don't really have to know HOW to create the formula for the series. you just know that you have to use that one to get your desired output. Does that make sense?
Im asking why he picked that formular and not the others that were shown on the site.
The other isn't formulae. They are things like mean, total, vector length and so on. Only the last one is a series formula.Try it on wolfram alpha and go thru the entire page, you will get more clarity on it.
oh now i get it thank you very much
You're welcome :)
Wonderful Teacher....
Really I like your wolfram alpha trick
Happy to help :)
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.
Sorry, but i don't see that in the code
12:46min, 104th line of code: maxIndexToPrint = indexToPrint+itemsPerRow
That tells me what index number I need to print up for each row of the tree
Nice work as usual!
this video is more complicated than it needs to be ...
Why use such complicated formula for indent.
indent = (int) (indent / 2.0); //eg: indent = 7. 7/2 = 3.5. (int) 3.5 = 3.
I need to start a huge project in the company to develop a new software from ground.. Seriously, we need that but how can start? I dont have good enough knowledge to do that :( Bu I want that so much