- 201
- 731 904
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.
Переглядів: 38
Відео
Binary Search Trees Part2 - Searching and Deleting
Переглядів 333 місяці тому
Binary Search Trees Part2 - Searching and Deleting This video is part2 for ua-cam.com/video/MKxBOHLxeGg/v-deo.html I will show C code for the Binary Search Tree.
Binary SearchTree
Переглядів 533 місяці тому
Binary SearchTree - for beginners explained using diagrams and C code.
Breadth First Search (BFS) Tutorial with Python Code
Переглядів 283 місяці тому
Breadth First Search (BFS) Tutorial with Python Code
Building an Array Based Heap
Переглядів 393 місяці тому
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
Переглядів 7745 місяців тому
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
Переглядів 1565 місяців тому
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
Переглядів 467 місяців тому
Python and pickle module - serialize objects
Error Handling User Input with cin in C++
Переглядів 1,1 тис.Рік тому
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
Переглядів 765Рік тому
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
Переглядів 131Рік тому
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
Переглядів 947Рік тому
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
Переглядів 595Рік тому
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
Переглядів 14 тис.Рік тому
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
Переглядів 149Рік тому
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
Переглядів 497Рік тому
Intro to Microsoft Azure PlayFab, Anonymous Login and Title Data
Unity Tutorial For Beginners - Button and TextMeshPro using Unity 2021
Переглядів 6 тис.Рік тому
Unity Tutorial For Beginners - Button and TextMeshPro using Unity 2021
Python Minesweeper - Handling Zero Boxes
Переглядів 980Рік тому
Python Minesweeper - Handling Zero Boxes
Python - Writing Binary Data to Files
Переглядів 4,9 тис.2 роки тому
Python - Writing Binary Data to Files
Unity - Multiple Animations on One Object
Переглядів 15 тис.2 роки тому
Unity - Multiple Animations on One Object
Swift - UserDefaults (how to remember user selections)
Переглядів 3392 роки тому
Swift - UserDefaults (how to remember user selections)
SpriteKit Collisions in a Character Game with Multiple Scenes
Переглядів 2,4 тис.2 роки тому
SpriteKit Collisions in a Character Game with Multiple Scenes
Python Minesweeper Program in Less than 20 minutes
Переглядів 4,5 тис.2 роки тому
Python Minesweeper Program in Less than 20 minutes
Unity - Multiple Sounds On A Button (Quiz Game Application)
Переглядів 6512 роки тому
Unity - Multiple Sounds On A Button (Quiz Game Application)
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!
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 😅
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 🙌🏽
Needed a better understanding on this topic. Thanks! You earned another sub. Please keep teaching!
Thank you sooo much for this video!
Everyone needs to see this video! Most people thinks that IA is this all-knowing entity thats gonna enslave humanity, when its only a tool, its excellent for producing mediocre stuff but when you need something a little bit more deep It start giving you random shit 😂
with this operators you can create a binary calculator.
Thank you very much extremely handy :)
Exactly what I've been looking for not more not less, thanks
This is great :D Thank you for the video!
do you know a way to change the frequency of the sound?
Really helped me understand. Thanks!
Easiest Tutorial on the internet.
oooooooooh Thank you for this tutorial Sensie, it's work for me.🤩
How do I write a string and other data types?
Hey Heather! I just searched for "python hex editor" and this was the first thing that came up! Very cool. I didn't even know you were a computer science teacher.
it's a small world! Thanks for checking out my channel. Happy Juggling.
You’re the best, girl. Thank you.
awww... Thanks!