Solving Programming Problems 2

preview_player
Показать описание

In my previous tutorial I walked you threw the process of solving a generic programming problem. We made a method that printed out a tree structure in the console.

In this tutorial, I'll walk through the process of finding bugs in the code and talk about how we can fix those bugs. I think this topic may be the hardest to teach. I hope the video and the code that follows can help you better grasp how to solve most any programming problem.
Рекомендации по теме
Комментарии
Автор

Thank you :) You're very kind. I'd guess you enjoy my videos because I teach in a way that is completely different from both professors and other tutorial people. There is a percentage of people in the world that prefer learning at a quick pace. You are one of those people I'd guess. So, since you've never experienced a teaching style like this that is why you enjoy it. I also enjoy teaching which is a feeling I think that is lost when it becomes a job. Thanks again :)

derekbanas
Автор

why can't teachers be like you? even though you said you don't have a master degree but your teaching skills extend far beyond a lot of the PH.D professors. you make things clear. Thank You

zoomer
Автор

Thank you :) It is very gratifying to be able to help people all over the world!

derekbanas
Автор

Derek ... you are the best :-)
I'm in C.S. and your teaching is brilliant.
Thanks from Portugal, cheers !!!

stereobrus
Автор

This 2 part series is very well explained, thank you!

manueltorralba
Автор

I humbly welcome for showing a great and difficult programming problems in EASY WAY !!!!

Courserasrikanthdrk
Автор

What you more then likely need is a graph data structure. I haven't covered them yet though. Here is an interesting post on some of the crazy things that you should think about when modeling a family tree stackoverflow.

derekbanas
Автор

Hey Derek, Thank for wonderful tutorials. Any video on dynamic programming?

Thanks

puneetja
Автор

Why do u need to sort indentArray? Because when i delete that line everything still working perfectly?

MegaVuhung
Автор

Thank you :) I thought it was interesting

derekbanas
Автор

Is there a way to do this for a given set of numbers rather than having it randomly generate? For example if I wanted to sort this list of integers A[1..8] = (12, 8, 15, 5, 6, 14, 1, 17)

Thanks for the video tutorials they are super helpful!!


public void generateFilledArray(int randNum) {

Data randomData1;

for (int i = 0; i < this.maxSize; i++) {

randomData1 = new Data((int) (Math.random() * randNum) + 1);

this.insert(i, randomData1);

// Need to do this in a separate function because
// later when I sort the array I need to use insert
// without incrementing the array

incrementTheArray();

}

}

DeeDotTrig
Автор

Thank you for the awesome tutorial. I learned a lot from the video.
I have a question that I need help with. I am asked to write a program that represents family tree.What data-structure should I use? I thought of binary tree, but in real life you can have more than two children (Of course not in China). Can anybody point me in right direction. Thank you

pds
Автор

Thank you Derek-sensei for your help!!

rodneytheredmage
Автор

This do not help me solve other problems, There is no general information on how to tackle other problems

dixoncyprian
Автор

derek banas can u do more of this programming problems

VS-icby
Автор

Ich hoffe, Deutschland zu besuchen einige Tage. Das ist, wo meine Familie war ursprünglich aus.

derekbanas
Автор

In Germany we say: Dem Ingeneur ist nix zu schwör :-D

fxbehr
welcome to shbcf.ru