- 201
- 760 280
Painless Programming
เข้าร่วมเมื่อ 3 พ.ค. 2013
I'm a computer science teacher and created this channel to help my students follow along in their courses. I hope you will grow to love computer science as much as I do.
Big O Notation
Big O Notation - with C examples. Big O notation will allow you to analyze algorithms to give an upper bound of runtime.
มุมมอง: 68
วีดีโอ
Binary Search Trees Part2 - Searching and Deleting
มุมมอง 406 หลายเดือนก่อน
Binary Search Trees Part2 - Searching and Deleting This video is part2 for th-cam.com/video/MKxBOHLxeGg/w-d-xo.html I will show C code for the Binary Search Tree.
Binary SearchTree
มุมมอง 646 หลายเดือนก่อน
Binary SearchTree - for beginners explained using diagrams and C code.
Breadth First Search (BFS) Tutorial with Python Code
มุมมอง 817 หลายเดือนก่อน
Breadth First Search (BFS) Tutorial with Python Code
Building an Array Based Heap
มุมมอง 647 หลายเดือนก่อน
Building an Array Based Heap in 7 minutes. I will use diagrams to discuss the logic and python for the implementation.
Python Solution to Tower of Hanoi
มุมมอง 1.8K8 หลายเดือนก่อน
Python Solution to Tower of Hanoi - this video shows a recursive solution to the Tower of Hanoi math puzzle. The puzzle involves 3 towers: A, B, C and a set of disks. You start with a set of disks on A with different diameters and have the goal of moving all disks to C. The puzzle rules say 1) only move one disk at a time 2) only move the disk on top 3) never put a larger disk on top of a small...
Python Lambda Fcns for Beginners
มุมมอง 1618 หลายเดือนก่อน
Python Lambda Fcns for Beginners - lambda functions or lambda expressions are anonymous functions that fit on one line. Let's take some small functions and turn them into lambda functions.
Python and pickle module - serialize objects
มุมมอง 5110 หลายเดือนก่อน
Python and pickle module - serialize objects
Error Handling User Input with cin in C++
มุมมอง 1.4Kปีที่แล้ว
Error Handling User Input with cin in C - when trying to read a number from the user, in my example I'm reading the number into a stort int data type, some errors that could occur: 1) user enters letters only 2) user enters float 3) user enters a mix of numbers and letters 4) user enters a value that is too large and in the case of an unsigned data type, the user could enter a negative number. ...
Using ChatGPT in C Programming
มุมมอง 957ปีที่แล้ว
Using ChatGPT in C Programming - this video poses a simple programming problem to ChatGPT and looks at the pros and cons of the generated answer. ChatGPT could be a great tool when learning C programming, but be careful not to become over reliant on the tool. And do not turn in ChatGPT answers as your own original work.
Creating a Database in Python using sqlite3 module
มุมมอง 143ปีที่แล้ว
This video is aimed at beginners who want to create a database in python. I'm using the sqlite3 module which is included when you download python. This video shows you how to create a database table, how to insert records into the table, how to delete records, and how to select from the table.
Learn to Code a Barbie Dress Up Game in 5 Minutes
มุมมอง 1.2Kปีที่แล้ว
Learn to Code a Barbie Dress Up Game in 5 Minutes - This tutorial is for beginning coders using Scratch. You can find the images used in this video at the link: github.com/heathermarriott/barbieScratchProject
Creating your First Computer Game in Scratch
มุมมอง 1Kปีที่แล้ว
Creating your First Computer Game in Scratch - Scratch is a language created by MIT to help teach computer programming to kids and adults. The easy to use online format makes learning about programming very easy for all. Start by creating an account at: scratch.mit.edu/ I will walk you through creating your first game where you help the cat collect fish by clicking on them. This simple example ...
Swift Storyboard Tutorial
มุมมอง 17Kปีที่แล้ว
This is a beginner's swift storyboard example with two labels and two buttons. The video shows how to hookup the User Interface from the storyboard to the Swift code. I demonstrated having swift code in multiple files by using a class extension.
Unity Scenes that Look Good on Most Devices
มุมมอง 158ปีที่แล้ว
Unity Scenes that Look Good on All(Most) Devices - How to view your Unity Scene as it will appear of different device types: iPhones, iPads, Android tablets and phones. Setting the Canvas to Scale with Screen Size and inputting dimensions for the ideal screen size.
Intro to Microsoft Azure PlayFab, Anonymous Login and Title Data
มุมมอง 5922 ปีที่แล้ว
Intro to Microsoft Azure PlayFab, Anonymous Login and Title Data
Unity Tutorial For Beginners - Button and TextMeshPro using Unity 2021
มุมมอง 7K2 ปีที่แล้ว
Unity Tutorial For Beginners - Button and TextMeshPro using Unity 2021
Python Minesweeper - Handling Zero Boxes
มุมมอง 1K2 ปีที่แล้ว
Python Minesweeper - Handling Zero Boxes
Unity - Multiple Animations on One Object
มุมมอง 17K2 ปีที่แล้ว
Unity - Multiple Animations on One Object
Swift - UserDefaults (how to remember user selections)
มุมมอง 3662 ปีที่แล้ว
Swift - UserDefaults (how to remember user selections)
SpriteKit Collisions in a Character Game with Multiple Scenes
มุมมอง 2.5K2 ปีที่แล้ว
SpriteKit Collisions in a Character Game with Multiple Scenes
Python Minesweeper Program in Less than 20 minutes
มุมมอง 4.8K2 ปีที่แล้ว
Python Minesweeper Program in Less than 20 minutes
Unity - Multiple Sounds On A Button (Quiz Game Application)
มุมมอง 6802 ปีที่แล้ว
Unity - Multiple Sounds On A Button (Quiz Game Application)
Wow !this is a great news for reverse engineering! By the way, is this method restricted to files? Can it apply to disc? Which I insert a disc, and it read the binary from the disc drive?
Thanks for watching. There are more sophisticated tools for reverse engineering. For example if you want to analyze an executable file, there are tools like Ghidra and Binary Ninja. To analyze a jump drive/disc there are tools like Autopsy. There are better hex editors out there. My program is just a teaching example to show my students more about binary.
Very helpful. Thank you.
Glad it helped. Thanks for watching.
Thanks for your excellent lectures. Much better than I had in class this semester.
Thanks for making this painless.
started watching your videos because C makes me cry, hope your videos help...
I hope the videos can make your C journey painless.
Division by zero would not give a nonsense answer; it would cause an exception.
C does not natively support exceptions. C++ and other languages have exceptions. Go ahead and try it. According to the C standard, division by zero is undefined. I just tried in a Linux environment and it printed a negative number. Onlinegdb just had a non-zero return code meaning there was an error. It's always better to prevent error situations or output the user might not understand, like with the if statement in the code.
That was exactly what i needed thank you.
❤❤🎉🎉🎉🎉Please please I need more of this kind of explanation and kind of writing codes and thank you very much
Thank you for watching and commenting. Happy programming.
This is the best youtube video
Thanks!!!
Great, thank you so much, keep going girl❤
thank you for this
add Sleep function before the end of the main, if the sound doesn't get played even though there's no error;
How are you able to have the main.storyboard from the start? Whenever I start a new project, it's not there
When you start a new project, check what is selected under Interface pull down menu (Swift UI or Storyboard).
@@PainlessProgramming thanks!
Thank you so much , I'm from india. I couldn't understand this problem till i saw this video thanks for the step by step explanation ✌🏼😁
Is it possible to use this method to play an animation once on input?
thank you thank you. Helped me a lot
Happy to hear it. Thanks for commenting.
I never know that recursive function can also solve problems like this. Thank for your comprehensive explanation.
Bhaii u rescued me, thanks a ton
very swag very cool
53631 Nienow Mount
Well thank you very much 🙏🙏🙏
You are very welcome.
is that an online editor you're using ?
yes onlinegdb.com
Amazing video.
Thanks!
thank you so much, I couldn't find any other video talking about this. I was just about to quit
Glad it helped. Thanks for watching!
@@PainlessProgramming I second this. I couldn't find anything about this until your video. thank you so much for explaining very clearly!
@@MrBoby5999 Thanks for watching and commenting. Happy Programming!
Awesome tutorial, keep it up!
Thanks!
I am the 330th like from Senegal.
very useful, thanks
thank u
Or... just read a string and parse the integer. That is the easier way. scanf is not intended to be used as user input. scanf is a formatted input and, such as, you need to know all types of the input and the sequence of their occurrence. And that info is into the man page. C is not for beginners!
Very accessible and clear explanation! Thank you!
Question, since appending to list is linear time, whereas prepending would be constant, was the choice for the former meant to illustrate list traversal? Just curious since it seems simpler conceptually simpler and more performant to prepend. Thanks so much for your videos btw! Really appreciate the format and work you've put into them
That is a fantastic observation. Yes, in my example, insertion is O(n) because of the list traversal. You are correct, that putting the new item at the front would be O(1) and a good performance improvement if you do not need to keep the linked list in order of found Easter Eggs. Another way to do this would be to keep a pointer to the end of your linked list if you know that you will be frequently inserting to the end. Thanks for watching and commenting!
@@PainlessProgramming for sure, that makes sense. thanks for the reply and again for all your excellent instructional material!
Thank you so much!
Can python script use this as sector writer ? As hard drive manipulation it would be helpful if this can be used as output writer into hard drive sector 😅
Great! Thanks for this tutorial!
Hello i am from india,i'm a first year student in my college, i just started learning C++ and i completed learning upto functions, i understood your video very well, thanks a lot and also give me some tips to become a proficient programmer, please continue this series, ill recommend to my friends also.
I did not know I had any viewers from India. Thanks for watching. Best of luck in college.
@@PainlessProgramming Thanks
Very nice tutorial! Next step: adding some cool graphics with PyGame!
great idea!
Thank you so much
oh my god i hope you win a billion dollars in the lottery
Thanks :)
Very nice .. my son is learning Python 🐍
you're amazing 😭. others use all the most complicated methods they could come up with it, but this really isn't so, painful, to code 💖
Thanks!
Good tutorial, it's very surprising it didnt have many views.
oHiO w
so helpful thanks miss💗
OMG, I swear I was trying to find a function like this, you are a lifesaver
Glad to hear it. Thanks for watching.
Python is really slow for this simple task 😅
What do you recommend? (Genuinely asking)
omg that was so helpful!!!
Very helpful😊
how about if i entered a combination of numbers and letters? my program requires integers. for example, i put "98eg" it should return an error too. but when i entered 98 only, it'll perform what my program is supposed to do
This was an awesome video! Is it possible for you to make a video covering segues? Would love to hear your take on them 🙌🏽