David Weiss
David Weiss
  • 166
  • 784 661
Binary Search Algorithm Explained for Beginners! - Python Interview Prep
Binary Search is one of the fastest and most efficient ways of searching through a sorted list. In this video, we'll try to understand this core algorithm both conceptually as well as through a coding example at the very end.
This is a new style of video. More animations, more attempts to conceptually understand through visuals, and less on-the-screen coding. Let me know how you guys like it!
❤️ Support the ongoing growth of this channel! www.patreon.com/DavidWeissProgramming
🧑‍💻 Python Documentation:
docs.python.org/
----------------------------------------------------------------------------------------------
🕒 Timestamps
0:00 Binary Search Intro
0:39 How Does Binary Search Work?
0:57 Real Life Example
1:40 Time Complexity
1:55 Recursive vs Iterative Approach
2:13 Python Implementation
----------------------------------------------------------------------------------------------
Other playlists:
-------------------------------------
Python
-------------------------------------
Interview Prep Introduction:
th-cam.com/play/PL42xwJRIG3xBG8laocRYsDaiK0xNOyjnD.html
Pandas:
th-cam.com/play/PL42xwJRIG3xAfE7AJkO7sCIyMGVVgZu-i.html
-------------------------------------
Flutter
-------------------------------------
Basic Widgets:
th-cam.com/play/PL42xwJRIG3xDX1V8-sNHXk39qeSVy7W8J.html
Dart:
th-cam.com/play/PL42xwJRIG3xDhQj15rrsAxv_TNdv9Paqa.html
Flutter Orientation:
th-cam.com/play/PL42xwJRIG3xD4v1Xb8prXG89zZgSWND-p.html
-------------------------------------
Google Cloud
-------------------------------------
Compute Engine:
th-cam.com/play/PL42xwJRIG3xAjjZ3tY_zrZYEhStnIofzB.html
App Engine:
th-cam.com/play/PL42xwJRIG3xCtmOrJAQFR5sIJFKIJ9MEn.html
Google Cloud Orientation:
th-cam.com/play/PL42xwJRIG3xBGAOjrm9iZ3N5_eP_KRc34.html
-------------------------------------
Apps Script
-------------------------------------
Cache Service:
th-cam.com/play/PL42xwJRIG3xCCAeJUuxtmr47NYC8sRQ2d.html
JDBC Service:
th-cam.com/play/PL42xwJRIG3xCFMS4-IyAQg-9bJGx7-226.html
Data Studio Service:
th-cam.com/play/PL42xwJRIG3xBM88UgT79HKxO_u0ze3BZL.html
Maps Service:
th-cam.com/play/PL42xwJRIG3xAXgY2FksYt-kbKuXNmSUMA.html
Utilities Service:
th-cam.com/play/PL42xwJRIG3xBnsGHi6fetv17uQ35NXm0S.html
Properties Service:
th-cam.com/play/PL42xwJRIG3xDBj4s5WwO7sYUyA3H06Bjs.html
URL Fetch Service:
th-cam.com/play/PL42xwJRIG3xDormBAHLcxorCYpHlHa_IE.html
Drive Service:
th-cam.com/play/PL42xwJRIG3xDbvnvgWOizjX6j1jYBn0zk.html
Forms Service:
th-cam.com/play/PL42xwJRIG3xBoKUA3zPkICMTAa_vu0QEl.html
Lock Service:
th-cam.com/play/PL42xwJRIG3xDBPhvVrQdRi2Hdy9kMeb90.html
HTML Service:
th-cam.com/play/PL42xwJRIG3xAafvhn9eCubEdas3I2TrNh.html
Document Service:
th-cam.com/play/PL42xwJRIG3xBFGeUZCMubWlwrhUXDdaTA.html
Slides Service:
th-cam.com/play/PL42xwJRIG3xBknGu3JNdJqHCiPpaVxAuY.html
Calendar Service:
th-cam.com/play/PL42xwJRIG3xAqrGnc_o2NL4RH4jdyiHsp.html
Script Service:
th-cam.com/play/PL42xwJRIG3xDPE35v7e83rH7Uu4g_MfmC.html
Gmail Service:
th-cam.com/play/PL42xwJRIG3xA5pkm04CY_WVZ9lE1Ju_JH.html
Spreadsheet Service:
th-cam.com/play/PL42xwJRIG3xBZFP5wYh-OFb-CQmjz-Rn-.html
Apps Script Orientation:
th-cam.com/play/PL42xwJRIG3xCm6O85pd91tQxgxGcq82m4.html
----------------------------------------------------------------------------------------------
มุมมอง: 342

วีดีโอ

Python Operators Explained: A Comprehensive Guide for Beginners ~ Episode 0.4
มุมมอง 291ปีที่แล้ว
Hey Coders! In this Python tutorial video, we will delve into the world of Python operators. Operators are a fundamental part of any programming language, and Python offers a rich set of operators for performing various operations. We will cover all the major types of operators, including arithmetic, comparison, logical, bitwise, and assignment operators. Full Operator Precedence List: www.prog...
Variables & Data Types - The Technical Interview | Introduction ~ Episode 0.3
มุมมอง 200ปีที่แล้ว
Hey Coders! Foundational to any programming language are variables and data types, and python is no different! Variables are used to store data, so they can be retrieved, updated, and used later in your script, and since python is dynamically typed, those variables can even change their data type! Be sure to learn all the ins and outs of variables and data types in this video, because we'll nee...
Python Under the Hood - The Technical Interview | Introduction ~ Episode 0.1
มุมมอง 2Kปีที่แล้ว
Hey Coders! Ever wonder what the difference between Python 2 & 3 is? Why do other Pythonistas bring up C language all the time? Or just how the python interpreter even works? While the topics in this video will most likely never be tested in a live interview, it's still a good idea to become familiar with what happens to your code after you hit the "run" button in python. Let's quickly explore ...
Become a Python Developer - The Technical Interview | Introduction ~ Episode 0.0
มุมมอง 255ปีที่แล้ว
Hey Coders! The road to landing your 6-figure python developer dream job starts here. From a large community of other supportive python devs, a flexible work-life balance, and lucrative compensation, becoming a python developer was one of the best choices of my life! This new course will walk you through step by step in detail everything you need to know to ace your technical interview as well....
How to Install Python & Set Up Your Dev Env - The Technical Interview | Introduction ~ Episode 0.2
มุมมอง 336ปีที่แล้ว
Hey Coders! It's time we finally download python, our IDE, and get coding. The installation steps are extremely straightforward, but just to make sure we're all on the same page, we'll walk through how to get everything set up. By the end of this video, you'll have run your very first python script, how fun! Answers to Post-Video Quiz: 1. www.python.org 2. python -V (for python 2) or python3 -V...
Sorting Your Data - Pandas | Python ~ Episode 11
มุมมอง 3042 ปีที่แล้ว
Hey Coders! Ever wanted to know what are the 3, 5, or 10 largest values in a column of your pandas dataframe? How about reordering the "last name" column so that everyone in your table is in alphabetical order? There's no easy way to do this unless you use the "sort_values" method! Sort_values allows you to sort the rows of your dataframe in either ascending or descending order based on one or ...
Renaming Columns & Indicies - Pandas | Python ~ Episode 10
มุมมอง 1542 ปีที่แล้ว
Hey Coders! Included within your pandas data cleaning tasks is making sure your column and index names are both readable and accessible. This can come in handy for both understanding your dataframe's schema as well as performing efficient joins and merges. Furthermore, renaming columns to more human-readable names can assist in your data analysis and presentation. Watch this tutorial to learn h...
Visualizing Data with Graphs - Pandas | Python ~ Episode 9
มุมมอง 2402 ปีที่แล้ว
Hey Coders! When it comes to data science and analytics, Python is king! There are hundreds of amazing libraries for running mathematical and statistical analyses on your Pandas dataframes. Just as important as this is though, seeing a clear, well-put-together graph can be just as compelling for understanding your data. Luckily, pandas has built-in functionality for plotting your data! You can ...
Grouping Data - Pandas | Python ~ Episode 8
มุมมอง 2942 ปีที่แล้ว
Hey Coders! Ready to take your pandas analysis skills to the next level? Grouping your data by a common value and then performing some kind of aggregation function on it is a common and powerful task. Almost exactly like the GROUP BY keywords in SQL, pandas groupby() method allows you to create a group object, which can be used to find things like average math score for each race/ethnicity or g...
More Data Cleaning with Custom Functions (Data Cleaning Part 2) - Pandas | Python ~ Episode 7
มุมมอง 4612 ปีที่แล้ว
Hey Coders! Badly formatted data can be as much of a problem as missing data. Thankfully, pandas provides a suite of tools to format your data in the exact way you want. With methods such as apply() and applymap(), you can quite literally define your own functions to pass the data through. For instance, you can remove special characters from a column of all strings, or calculate the residual of...
Appending & Merging Dataframes (concat, merge, join, ...) - Pandas | Python ~ Episode 5
มุมมอง 3592 ปีที่แล้ว
Hey Coders! As mentioned before, pandas can be thought of as SQL on steroids for python. One of the hallmarks of SQL is the ability to join two tables together based on a related column. In pandas, you can also do this, but with many more features and functionality. The best way to perform an inner/left/right/outer/cross join is by using the pd.merge method. However, pandas also allows you to c...
Handling Missing Data (Data Cleaning) - Pandas | Python ~ Episode 6
มุมมอง 1.2K2 ปีที่แล้ว
Hey Coders! As much as we dream of a perfect world, when it comes to raw data found out in the wild, it will most likely be patchy. Missing data is one of the most prevalent causes of data cleaning. Sometimes, non-existent data is OK, but for those other times, pandas provides a suite of methods and techniques to resolve missing values. Some examples are dropping the row altogether, or a more g...
Filtering Data - Pandas | Python ~ Episode 3
มุมมอง 4852 ปีที่แล้ว
Hey Coders! After learning how to access and isolate the data in your pandas dataframe the 2nd most important operation is learning how to filter for the exact data that you want. For instance, let's say you had data on human heights across various ages. While examining your data, you may want to find the average height for just males, or just females, or maybe you want to find the ratio of mal...
How to Install and Import Pandas (& Jupyter Lab) - Python ~ Episode 0
มุมมอง 7K2 ปีที่แล้ว
Hey Coders! Are you interested in analyzing data in python? Are you aspiring to become a Data Engineer / Data Scientist one day? If yes, then learning pandas, an immensely popular python package for data analysis and manipulation, is a must. Pandas allows python scripts to read in tabular data of all sizes in a neat and organized way, clean it, transform it, analyze it, and then export it back ...
Calculating Summary Statistics - Pandas | Python ~ Episode 4
มุมมอง 5972 ปีที่แล้ว
Calculating Summary Statistics - Pandas | Python ~ Episode 4
Series, DataFrames & Other Basics - Pandas | Python ~ Episode 1
มุมมอง 5762 ปีที่แล้ว
Series, DataFrames & Other Basics - Pandas | Python ~ Episode 1
Accessing Rows, Columns & Cells - Pandas | Python ~ Episode 2
มุมมอง 2.4K2 ปีที่แล้ว
Accessing Rows, Columns & Cells - Pandas | Python ~ Episode 2
Reading & Writing to the Cache (COVID Vaccination Web App) - Apps Script | Cache ~ Episode 17.2
มุมมอง 4.1K3 ปีที่แล้ว
Reading & Writing to the Cache (COVID Vaccination Web App) - Apps Script | Cache ~ Episode 17.2
Introduction to the Cache - Apps Script | CacheService ~ Episode 17.0
มุมมอง 5K3 ปีที่แล้ว
Introduction to the Cache - Apps Script | CacheService ~ Episode 17.0
Cache Scope - Apps Script | CacheService ~ Episode 17.1
มุมมอง 3.4K3 ปีที่แล้ว
Cache Scope - Apps Script | CacheService ~ Episode 17.1
Row & Column - Flutter | Basic Widgets ~ Episode 2.3
มุมมอง 4463 ปีที่แล้ว
Row & Column - Flutter | Basic Widgets ~ Episode 2.3
Advanced Widgets Introduction - Flutter ~ Episode 3.0
มุมมอง 4743 ปีที่แล้ว
Advanced Widgets Introduction - Flutter ~ Episode 3.0
Container & Padding - Flutter | Basic Widgets ~ Episode 2.2
มุมมอง 4143 ปีที่แล้ว
Container & Padding - Flutter | Basic Widgets ~ Episode 2.2
Introduction - Flutter | Basic Widgets ~ Episode 2.0
มุมมอง 4573 ปีที่แล้ว
Introduction - Flutter | Basic Widgets ~ Episode 2.0
Building the Foundation - Flutter | Basic Widgets ~ Episode 2.1
มุมมอง 4653 ปีที่แล้ว
Building the Foundation - Flutter | Basic Widgets ~ Episode 2.1
Classes, Constructors, and Objects - Flutter | Dart ~ Episode 1.6
มุมมอง 7K3 ปีที่แล้ว
Classes, Constructors, and Objects - Flutter | Dart ~ Episode 1.6
Flutter Introduction - Flutter | Overview ~ Episode 0.0
มุมมอง 7063 ปีที่แล้ว
Flutter Introduction - Flutter | Overview ~ Episode 0.0
Variables & Data Types - Dart | Flutter ~ Episode 1.1
มุมมอง 2.1K3 ปีที่แล้ว
Variables & Data Types - Dart | Flutter ~ Episode 1.1
Functions (With Optional & Required Parameters) - Flutter | Dart ~ Episode 1.4
มุมมอง 3.9K3 ปีที่แล้ว
Functions (With Optional & Required Parameters) - Flutter | Dart ~ Episode 1.4

ความคิดเห็น

  • @LuceroMonserratSánchez
    @LuceroMonserratSánchez 28 วันที่ผ่านมา

    what happens when passes 10 seconds? does it retry? or does it die?

  • @RichardAcquaye-l7n
    @RichardAcquaye-l7n หลายเดือนก่อน

    Is there a way to check if the sheet has changed from a specific one? I'm working on a fix to close a sidebar when the user navigates away from a specific sheet.

  • @my-almagest
    @my-almagest 2 หลายเดือนก่อน

    I have a question, if I share this sheet with "reader" access my script doesn't work and if I change access for "editor" it works, as I need. What needs to be done that my script works with "reader" access?

  • @kunallodhari4660
    @kunallodhari4660 2 หลายเดือนก่อน

    Hii, I am not a techie, but I think I might have some idea as too how did you receive 2 emails.. I tried the same trick and ran the code for a few times and noticed something, if i run the code for a few time, the code will automatically generate a trigger with each run. So, if i run the code for 5 time, the code will generate 5 triggers and send the person 5 email.. I tried and ran the form with trigger for 20 times trying new things and code and I received 20 emails 😅😅... So, now I am looking for a way in which the trigger is only set one time and not when the form is submitted. So, if anyone has any idea as too how do i change the first part (the trigger loop) so that it only runs one time not thousands, please let me know.. Thank you in advance..

  • @coreyredmon5611
    @coreyredmon5611 2 หลายเดือนก่อน

    When you removed the filter, that event wasn't logged. Does anyone know a trigger which will catch filter changes?

  • @aldofasano9648
    @aldofasano9648 2 หลายเดือนก่อน

    Hi David, is there a way to also insert the correct answer to the multiple choice question into the sheet and have it be imported into the Google Form?

  • @bobaseth1
    @bobaseth1 3 หลายเดือนก่อน

    Thank you for teaching this! Very helpful!

  • @brijeshvarsani7889
    @brijeshvarsani7889 4 หลายเดือนก่อน

    Do you have any video on: I already created a form using form ui. I need to get the submitted data. I am struggling with getting the value for selected choice in grid. F.g. row 1 and col 2 is selected then i need value of row 1 and col 2 heading. I struggling to fetch that data

  • @gothamfury
    @gothamfury 4 หลายเดือนก่อน

    Thank you for taking the time to make the playlist series on Apps Script. It’s a great resource and very much appreciated :)

  • @EthanPatrick-k4w
    @EthanPatrick-k4w 5 หลายเดือนก่อน

    Theoretically, could I set up a daily time based trigger in the Triggers UI to run between 12AM-1AM for the setUpTrigger function and use the at() method to specify a specific time by modifying new Date() when I run it at midnight? Get new Date, then modify so it happens on a specific time of that date. This would allow me to do basically the same thing as atHour().nearMinute() without the 15 minute +/-

    • @EthanPatrick-k4w
      @EthanPatrick-k4w 5 หลายเดือนก่อน

      something like this: function createTrigger() { var now = new Date(); // Convert the current time to Pacific Time var convertPacific = now.toLocaleString('en-US', { timeZone: 'America/Los_Angeles' }); // Create a new Date object with the Pacific Time var pacificNow = new Date(convertPacific); // Set the time to 4:00 PM var runtime = new Date(pacificNow.setHours(16, 0, 0, 0)); // 16:00:00.000 is 4:00 PM Logger.log(now); Logger.log(runtime); // Create the trigger to run at 4 PM Pacific Time ScriptApp.newTrigger('closeSnoozed') .timeBased() .at(runtime) .create(); }

  • @onurakgul5083
    @onurakgul5083 5 หลายเดือนก่อน

    you are saved my fucking life bro thanks :)

  • @sheilasawe
    @sheilasawe 5 หลายเดือนก่อน

    How do you use advanced services?

  • @lucasm.a.6338
    @lucasm.a.6338 5 หลายเดือนก่อน

    Sabe muito, saudações do Brasil

  • @EndroPora
    @EndroPora 6 หลายเดือนก่อน

    Can you help me on how to fix the Google Form grid data based on the name of the list in Google Sheet even if there is a change in the number of lists. Please help, I am willing to donate for this problem

  • @venom_v1perr
    @venom_v1perr 6 หลายเดือนก่อน

    Hey is there a way to speak to you about my current script I'm pulling my hair over I need some guidance and came across your videos I think I'm getting there with it but something throwing me off or not right.

  • @kennedy-f4v
    @kennedy-f4v 6 หลายเดือนก่อน

    thank you much

  • @aachenmf7401
    @aachenmf7401 6 หลายเดือนก่อน

    Absolute great, thanks for sharing this, you’ve saved my ass David ❤

  • @tanerdoguer6781
    @tanerdoguer6781 6 หลายเดือนก่อน

    Great tutorial, thank you so much David...

  • @gadeshsharma2190
    @gadeshsharma2190 6 หลายเดือนก่อน

    It good to see you teaching advance flutter but there is only introduction video and i can not find other topics yyou mention on the introduction video. Can you help?

  • @BertrandDelcroix
    @BertrandDelcroix 7 หลายเดือนก่อน

    I followed your video. Could you tell me how you found the SECRET API code, indicated in the "getZoomAccessToken()" function? Because I developed a procedure using GOOGLE SCRIPT API for the implementation of the electronic signature card in the GMAIL signature parameter. Here, my test launch is crashed due to the problem on the delegation domain!!... With your video, I tried to test with your example to understand how it works... I know where KEY API is located, placed in the Google cloud console, and then, in API and service. but, I do not see API SECRET whereas, for clients, ID and password have appeared!!!... So, how did you find the SECRET API code, indicated in the "getZoomAccessToken()" function? Thank you in advance for your help. sincerely

  • @tomerm123
    @tomerm123 9 หลายเดือนก่อน

    Greate video! Amazing chanel! Wish I would have find you a while ago 😂 If it is possible, would love to get your help with the extra step enfourcing http->https redirection. thank you so much 💪🏽💪🏽

  • @positivevibestv4
    @positivevibestv4 9 หลายเดือนก่อน

    hey sir can we have contact i have some question how i can contact you

  •  9 หลายเดือนก่อน

    Hello, how do I redirect the lead to a website after they fill out the form? I don't want to put the link so he has to click. I would like it to be automatically redirected to the website when pressing the submission button. It's possible? How to do this? Would you help me? Tks

  • @marcopagliari9093
    @marcopagliari9093 10 หลายเดือนก่อน

    Grandissimo! Thanks a lot!

  • @jk9112605
    @jk9112605 10 หลายเดือนก่อน

    Thanks for sharing. It helps me a lot. I also saw your new channel for ironman Waco. It is amazing for me as a coder ^^; By the way, I have a question for Google apps script, how to see the log which is generated by console.log(). For my apps script, there is no logs in my Exections. My apps has deployed. Hope you could give me some advice or guide me how to figure out. Thanks.

  • @JAWSFREE
    @JAWSFREE 10 หลายเดือนก่อน

    how do you get it to show the helper text when you start typing the code? Is this an option I can turn on?

  • @sohailmalik5481
    @sohailmalik5481 11 หลายเดือนก่อน

    Thanks. It really helped me today.

  • @leodevbro
    @leodevbro 11 หลายเดือนก่อน

    Hi, if I have 100K emails totally (inbox plus outbox plus archive plus....), what if I want to get the sender addresses of all these emails? If I just use getMessages() function, it will take too much time to fetch them, probably many many hours, because it fetches the entire messages. But I want only the index, I mean, I want only the addresses of the senders of all messages. Nothing more. Is there any quicker (more optimized) way to do it using Apps Script? or maybe there is some other way to do it?

  • @skipbrandon4195
    @skipbrandon4195 11 หลายเดือนก่อน

    Hi Dave, just wanted to let you know that I loved the effort you put into your videos, they've been very helpful and fun to watch. Cheers!

  • @Anzeljaeg
    @Anzeljaeg ปีที่แล้ว

    Amazing content ty

  • @Anzeljaeg
    @Anzeljaeg ปีที่แล้ว

    Thanks so much

  • @_DefiJack
    @_DefiJack ปีที่แล้ว

    Please make a video on how to deploy a nodejs app that uses socketio to app engine flex environment. I can't get socketio to work. Works fine locally but not after deploying to app engine. Keep getting 502 bad gateway error.

  • @237_radithya9
    @237_radithya9 ปีที่แล้ว

    hi david, i already deployed my api into the app engine. But when i test it into postman, it showed "service unavailable". Idk where is the problem. Thanks🙌

  • @gaminisusanhinda7310
    @gaminisusanhinda7310 ปีที่แล้ว

    han

  • @EmmaEffect1
    @EmmaEffect1 ปีที่แล้ว

    Really helpful! Thank you!

  • @vyacheslavnesmeianov4641
    @vyacheslavnesmeianov4641 ปีที่แล้ว

    SOAB! You were probably born to teach people! I can't support you by money (yet) but I will! Dude! Thank you so much for this!

  • @VishalSharma-lo5ol
    @VishalSharma-lo5ol ปีที่แล้ว

    Hey David, Can we use this to store credentials ?

  • @3b3z_himself2
    @3b3z_himself2 ปีที่แล้ว

    AWESOME ! Thank you dude !

  • @leshgabes
    @leshgabes ปีที่แล้ว

    Спасибо! Увы, так и не нашел возможность отслеживать изменения, вызванные скриптами, а не пользователем

  • @hoavosac9609
    @hoavosac9609 ปีที่แล้ว

    How to get full display name by gmail in script app? many thank you

  • @paulcristo
    @paulcristo ปีที่แล้ว

    This is so helpful. Thank you!

  • @anhkhoa3897
    @anhkhoa3897 ปีที่แล้ว

    is this way have limit quota?

  • @ricky10116
    @ricky10116 ปีที่แล้ว

    Thanks for make such great tutorial

  • @David-tl4mm
    @David-tl4mm ปีที่แล้ว

    Thank you! 🙌

  • @shyjujoseph1674
    @shyjujoseph1674 ปีที่แล้ว

    How to download data from a specific mailbox when I have multiple mailboxes associated with one account?

  • @dayaaliasparu8968
    @dayaaliasparu8968 ปีที่แล้ว

    I got an error when I redeploy the app with some changes. It is showing Action not allowed error the line number with DocumentApp.openById call method. Do i need to set any permissions for when I redeploy the app script again?

  • @hoakeen
    @hoakeen ปีที่แล้ว

    Love your videos mate!

  • @mc2cesar
    @mc2cesar ปีที่แล้ว

    Hello, my name is Maurílio and I live in Brazil. I watched this video of yours, trying to solve a problem of mine and I really liked it!! I noticed in this video that at 4 minutes and 13 seconds you managed to create a drop-down list where you filter the results as you type in the text field. Do you have a video that shows how to do this? Thank you very much!!

  • @satyajit2019
    @satyajit2019 ปีที่แล้ว

    I want to send reminder each and every day Monday to Friday On a specific time Can you please create the video for me.

  • @Frredy1985
    @Frredy1985 ปีที่แล้ว

    Is there a way to pass let say variable "name" from withing the gs so it is displayd in index file? So it is not declared as a const but it is "calulated" from the script? OK - I got it - solutions is here: developers.google.com/apps-script/guides/html/templates#code.gs_5