Programming Headache
Programming Headache
  • Видео 94
  • Просмотров 8 404
Solving Leetcode Problems - 3174. Clear Digits
You are given a string s.
Your task is to remove all digits by doing this operation repeatedly:
Delete the first digit and the closest non-digit character to its left.
Return the resulting string after removing all digits.
---
LeetCode is a platform that provides a collection of coding challenges, typically in the form of algorithmic problems and data structure exercises. It is widely used by programmers, software engineers, and those preparing for technical interviews. The platform covers a variety of topics, including but not limited to arrays, strings, linked lists, trees, dynamic programming, and graph algorithms. It allows to discover proven strategies and tackle real-world coding challe...
Просмотров: 151

Видео

Solving Advent Of Code 2024 - Day 4: Ceres Search (Part two)
Просмотров 1914 дней назад
Part Two The Elf looks quizzically at you. Did you misunderstand the assignment? Looking for the instructions, you flip over the word search to find that this isn't actually an XMAS puzzle; it's an X-MAS puzzle in which you're supposed to find two MAS in the shape of an X. One way to achieve that is like this: M.S .A. M.S Irrelevant characters have again been replaced with . in the above diagra...
Cesaro Fractal using p5
Просмотров 3714 дней назад
The Cesàro fractal is a fractal also known as the torn square fractal. The base curves and motifs for the two fractals illustrated above are shown below. mathworld.wolfram.com/CesaroFractal.html
Solving Leetcode Problems - 2418. Sort the People
Просмотров 5614 дней назад
You are given an array of strings names, and an array heights that consists of distinct positive integers. Both arrays are of length n. For each index i, names[i] and heights[i] denote the name and height of the ith person. Return names sorted in descending order by the people's heights.
Solving Leetcode Problems - 596. Classes More Than 5 Students
Просмотров 8514 дней назад
| Column Name | Type | | student | varchar | | class | varchar | (student, class) is the primary key (combination of columns with unique values) for this table. Each row of this table indicates the name of a student and the class in which they are enrolled. Write a solution to find all the classes that have at least five students. Return the result table in any order. LeetCode is a platform tha...
Solving Advent Of Code 2024 - Day 4: Ceres Search (Part one)
Просмотров 6614 дней назад
Day 4: Ceres Search "Looks like the Chief's not here. Next!" One of The Historians pulls out a device and pushes the only button on it. After a brief flash, you recognize the interior of the Ceres monitoring station! As the search for the Chief continues, a small Elf who lives on the station tugs on your shirt; she'd like to know if you could help her with her word search (your puzzle input). S...
Solving Advent Of Code 2024 - Day 3: Mull It Over (Part two)
Просмотров 6414 дней назад
Part Two As you scan through the corrupted memory, you notice that some of the conditional statements are also still intact. If you handle some of the uncorrupted conditional statements in the program, you might be able to get an even more accurate result. There are two new instructions you'll need to handle: The do() instruction enables future mul instructions. The don't() instruction disables...
Solving Advent Of Code 2024 - Day 1: Historian Hysteria (Part two)
Просмотров 7514 дней назад
Your analysis only confirmed what everyone feared: the two lists of location IDs are indeed very different. Or are they? The Historians can't agree on which group made the mistakes or how to read most of the Chief's handwriting, but in the commotion you notice an interesting detail: a lot of location IDs appear in both lists! Maybe the other numbers aren't location IDs at all but rather misinte...
Solving Advent Of code 2024 - Day 3: Mull It Over (Part one)
Просмотров 3114 дней назад
Day 3: Mull It Over "Our computers are having issues, so I have no idea if we have any Chief Historians in stock! You're welcome to check the warehouse, though," says the mildly flustered shopkeeper at the North Pole Toboggan Rental Shop. The Historians head out to take a look. The shopkeeper turns to you. "Any chance you can see why our computers are having issues again?" The computer appears ...
Solving Advent Of Code 2024 - Day 2: Red Nosed Reports (Part one)
Просмотров 6614 дней назад
Day 2: Red-Nosed Reports Fortunately, the first location The Historians want to search isn't a long walk from the Chief Historian's office. While the Red-Nosed Reindeer nuclear fusion/fission plant appears to contain no sign of the Chief Historian, the engineers there run up to you as soon as they see you. Apparently, they still talk about the time Rudolph was saved through molecular synthesis ...
Solving Advent of Code 2024 - Day 1: Historian Hysteria (Part one)
Просмотров 6321 день назад
There's just one problem: by holding the two lists up side by side (your puzzle input), it quickly becomes clear that the lists aren't very similar. Maybe you can help The Historians reconcile their lists? For example: 3 4 4 3 2 5 1 3 3 9 3 3 Maybe the lists are only off by a small amount! To find out, pair up the numbers and measure how far apart they are. Pair up the smallest number in the le...
Solving Leetcode Problems - 1295. Find Numbers with Even Number of Digits
Просмотров 35921 день назад
Given an array nums of integers, return how many of them contain an even number of digits. LeetCode is a platform that provides a collection of coding challenges, typically in the form of algorithmic problems and data structure exercises. It is widely used by programmers, software engineers, and those preparing for technical interviews. The platform covers a variety of topics, including but not...
Solving Leetcode problems - 577. Employee Bonus
Просмотров 17121 день назад
Table: Employee | Column Name | Type | | empId | int | | name | varchar | | supervisor | int | | salary | int | empId is the column with unique values for this table. Each row of this table indicates the name and the ID of an employee in addition to their salary and the id of their manager. Table: Bonus | Column Name | Type | | empId | int | | bonus | int | empId is the column of unique values ...
Solving Leetcode Problems - 586. Customer Placing the Largest Number of Orders
Просмотров 2821 день назад
Table: Orders | Column Name | Type | | order_number | int | | customer_number | int | order_number is the primary key (column with unique values) for this table. This table contains information about the order ID and the customer ID. Write a solution to find the customer_number for the customer who has placed the largest number of orders. LeetCode is a platform that provides a collection of cod...
Solving Leetcode Problems - 511. Game Play Analysis I
Просмотров 5428 дней назад
Table: Activity | Column Name | Type | | player_id | int | | device_id | int | | event_date | date | | games_played | int | (player_id, event_date) is the primary key (combination of columns with unique values) of this table. This table shows the activity of players of some games. Each row is a record of a player who logged in and played a number of games (possibly 0) before logging out on some...
Solving leetcode problems - 121. Best Time to Buy and Sell Stock
Просмотров 76Месяц назад
Solving leetcode problems - 121. Best Time to Buy and Sell Stock
Solving Leetcode Problems - 1633. Percentage of Users Attended a Contest
Просмотров 381Месяц назад
Solving Leetcode Problems - 1633. Percentage of Users Attended a Contest
Solving Leetcode problems - 13. Roman to Integer
Просмотров 55Месяц назад
Solving Leetcode problems - 13. Roman to Integer
Solving leet code problems - 175. Combine Two Tables
Просмотров 43Месяц назад
Solving leet code problems - 175. Combine Two Tables
Solving leetcode problems - 896. Monotonic Array
Просмотров 136Месяц назад
Solving leetcode problems - 896. Monotonic Array
Solving leetcode problems - 3110. Score of a String
Просмотров 34Месяц назад
Solving leetcode problems - 3110. Score of a String
Solving Leetcode Problems - 202. Happy Number
Просмотров 209Месяц назад
Solving Leetcode Problems - 202. Happy Number
Solving Leetcode Problems - 69. Sqrt(x)
Просмотров 181Месяц назад
Solving Leetcode Problems - 69. Sqrt(x)
Solving Leetcode problems - 434. Number of Segments in a String
Просмотров 104Месяц назад
Solving Leetcode problems - 434. Number of Segments in a String
Solving Leetcode problems - 191. Number of 1 Bits
Просмотров 265Месяц назад
Solving Leetcode problems - 191. Number of 1 Bits
Solving Leetcode Problems - 2723. Add Two Promises
Просмотров 106Месяц назад
Solving Leetcode Problems - 2723. Add Two Promises
Solving Leetcode Problems 81. Employees Earning More Than Their Managers
Просмотров 234Месяц назад
Solving Leetcode Problems 81. Employees Earning More Than Their Managers
Solvind Leetcode Problems - 3340. Check Balanced String
Просмотров 192Месяц назад
Solvind Leetcode Problems - 3340. Check Balanced String
Solving Leetcode Problems - 258. Add Digits
Просмотров 145Месяц назад
Solving Leetcode Problems - 258. Add Digits
Solving LeetCode Problems - 242. Valid Anagram
Просмотров 64Месяц назад
Solving LeetCode Problems - 242. Valid Anagram

Комментарии

  • @catnipIsOfficial
    @catnipIsOfficial 18 дней назад

    You motivated me to solve it too,😀

  • @gurjeetkaur8523
    @gurjeetkaur8523 Месяц назад

    i want to learn coding for free in hindi

  • @Akshay-rj7xm
    @Akshay-rj7xm Месяц назад

  • @derppppppp
    @derppppppp Месяц назад

    noice

  • @harshvardhansharma8514
    @harshvardhansharma8514 Месяц назад

    Finally found someone whose typing speed is exactly like me

  • @LoL-hv6px
    @LoL-hv6px Месяц назад

    return s[::-1]

  • @shreyasdesai24
    @shreyasdesai24 Месяц назад

    Which keyboard is it ?

  • @jailmawkluji1547
    @jailmawkluji1547 2 месяца назад

    but you didnt pass output array by referene??

    • @ProgrammingHeadache
      @ProgrammingHeadache 2 месяца назад

      In C# Object parameters are passed with a copy of the reference.

  • @nothingisreal6345
    @nothingisreal6345 2 месяца назад

    public static int lengthOfLastWord(string s) { return s.Split(" ", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).Last()?.Length ?? 0; }

  • @serrato987
    @serrato987 9 месяцев назад

    bello bello muy bello

  • @serrato987
    @serrato987 9 месяцев назад

    Ahora sí se ve bien hacker el setup

    • @nazgulresebo
      @nazgulresebo 9 месяцев назад

      Programando desde la matrix

  • @ashfaqkhan-e1f
    @ashfaqkhan-e1f 9 месяцев назад

    We appreciate it

    • @ProgrammingHeadache
      @ProgrammingHeadache 9 месяцев назад

      If you want a detailed explanation there's an article with source code in the video description.

  • @serrato987
    @serrato987 9 месяцев назад

    0:12 cómo le haces para borrar asi las lineas comentadas?

  • @serrato987
    @serrato987 9 месяцев назад

    Te tardaste mas en leer el problema

  • @serrato987
    @serrato987 10 месяцев назад

    Este quedó bien elegante jejej

  • @nazgulresebo
    @nazgulresebo 10 месяцев назад

    I can do it better XD

  • @serrato987
    @serrato987 10 месяцев назад

    Se parece al react

    • @ProgrammingHeadache
      @ProgrammingHeadache 10 месяцев назад

      Sí tiene la misma idea de componentes, estados y programar la UI.