Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Doing a coding challenge LIVE: Find Pivot Index!

  • KG.codes
  • 2023-06-11
  • 65
Doing a coding challenge LIVE: Find Pivot Index!
coding challengeleetcode problemleetcode challengeleetcode easyprogramming problemcodingleetcodecoding challengescoding interviewcoding interview practiceleetcode practiceleetcode practice problemhackerrankfind pivotfind pivot indexleetcode find pivot indexfind pivot index leetcodefind pivot index solutionfind pivot index answer
  • ok logo

Скачать Doing a coding challenge LIVE: Find Pivot Index! бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Doing a coding challenge LIVE: Find Pivot Index! или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Doing a coding challenge LIVE: Find Pivot Index! бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Doing a coding challenge LIVE: Find Pivot Index!

Join me to work through a coding challenge LIVE from Leetcode.com called Find Pivot Index!

Problem:
“Given an array of integers nums, calculate the pivot index of this array.”

Solution summary:
— I needed a hint here. It was that the sum to the right of any given index is = Total sum - Current index value - Left side sum.
— So I pre-compute the total sum of the array.
— Then loop the array, updating the left sum each interval, also checking if the right sum matches using the formula above.
— Time complexity: where 'N' is the length of the array, I perform N operations with the initial loop, then another N operations for each item to calculate/check sums.
N + N = 2N = O(n)

Let me know if you have any questions or see ways I could have optimized!

Bonus: at the end of the video I answer questions.

Let's connect!
🌐 Website | https://www.kg.codes
📺 Subscribe |    / @kgcodes  
📷 Instagram | www.instagram.com/kg.codes/
🎵 TikTok | https://www.tiktok.com/t/ZTRLxP4wf/
🐦 Twitter | www.twitter.com/kgcodes/

Get my coding gear / desk setup 👨🏾‍💻
📦 Amazon | https://www.amazon.com/shop/kg.codes/...

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]