TGViewer
Channel Public Channel
LeetCode Problems

LeetCode Problems

@it_interviews

You will get one leetcode problem every 2 days. Also you can LeetcodeBot to own telegram group.

По всем вопросам и предложениям обращаться @emil_dev и @FyodorMenshikov
Subscribers
2.16K
Photos
0
Videos
0
Links
194

Showing posts older than #63 · Back to latest

Older Posts 20 shown
Post #62 1.38K
Следующая задача: https://leetcode.com/problems/reverse-words-in-a-string-iii/. Она будет разобрана в 17.02.2020 в 21:00 MSK

Теги предыдущей задачи: деревья,O(n) по времени,O(height) по памяти,рекурсивная реализация,нерекурсивная реализация

Разбор предыдущей задачи: https://www.youtube.com/watch?v=c4Y2vayEvpw
LeetCode Reverse Words in a String III - LeetCode Can you solve this real interview question? Reverse Words in a String III - Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: s = "Let's take…
Post #61 1.33K
LeetCode Problems Следующая задача: https://leetcode.com/problems/univalued-binary-tree/. Она будет разобрана в 15.02.2020 в 21:00 MSK Теги предыдущей задачи: связные списки,O(n) по времени,O(1) по памяти Разбор предыдущей задачи: https://www.youtube.com/watch?v=-zxHtb9cN1U
Follow up: Решить без дополнительного памяти
Post #60 1.3K
Следующая задача: https://leetcode.com/problems/univalued-binary-tree/. Она будет разобрана в 15.02.2020 в 21:00 MSK

Теги предыдущей задачи: связные списки,O(n) по времени,O(1) по памяти

Разбор предыдущей задачи: https://www.youtube.com/watch?v=-zxHtb9cN1U
LeetCode Univalued Binary Tree - LeetCode Can you solve this real interview question? Univalued Binary Tree - A binary tree is uni-valued if every node in the tree has the same value. Given the root of a binary tree, return true if the given tree is uni-valued, or false otherwise. Example 1:…
Post #59 1.26K
LeetCode Problems Следующая задача: https://leetcode.com/problems/middle-of-the-linked-list/. Она будет разобрана в 11.02.2020 в 21:00 MSK Теги предыдущей задачи: деревья,O(n) по времени,O(height) по памяти,рекурсивная реализация,нерекурсивная реализация Разбор предыдущей…
Follow up: Решить задачу за один проход
Post #58 1.23K
Следующая задача: https://leetcode.com/problems/middle-of-the-linked-list/. Она будет разобрана в 11.02.2020 в 21:00 MSK

Теги предыдущей задачи: деревья,O(n) по времени,O(height) по памяти,рекурсивная реализация,нерекурсивная реализация

Разбор предыдущей задачи: https://www.youtube.com/watch?v=ELOXBdKsdbo
LeetCode Middle of the Linked List - LeetCode Can you solve this real interview question? Middle of the Linked List - Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node. Example 1: [https://assets.leet…
Post #57 1.21K
Следующая задача: https://leetcode.com/problems/maximum-depth-of-binary-tree/. Она будет разобрана в 09.02.2020 в 21:00 MSK

Теги предыдущей задачи: двумерные массивы,O(sizeI*sizeJ) по времени,O(1) по памяти

Разбор предыдущей задачи: https://www.youtube.com/watch?v=0ViPVp-CETs
LeetCode Maximum Depth of Binary Tree - LeetCode Can you solve this real interview question? Maximum Depth of Binary Tree - Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf…
Post #56 1.23K
Следующая задача: https://leetcode.com/problems/island-perimeter/. Она будет разобрана в 07.02.2020 в 21:00 MSK

Теги предыдущей задачи: деревья,O(n) по времени,O(height) по памяти,рекурсивная реализация,нерекурсивная реализация

Разбор предыдущей задачи: https://www.youtube.com/watch?v=ny_bx6bsSgo
LeetCode Island Perimeter - LeetCode Can you solve this real interview question? Island Perimeter - You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The…
Post #55 1.21K
Следующая задача: https://leetcode.com/problems/invert-binary-tree/. Она будет разобрана в 05.02.2020 в 21:00 MSK

Теги предыдущей задачи: перебор 2^n,рекурсивный вариант,нерекурсивный вариант,O(len*2^len) по времени и памяти

Разбор предыдущей задачи: https://www.youtube.com/watch?v=YAnkwDou5Uo
LeetCode Invert Binary Tree - LeetCode Can you solve this real interview question? Invert Binary Tree - Given the root of a binary tree, invert the tree, and return its root. Example 1: [https://assets.leetcode.com/uploads/2021/03/14/invert1-tree.jpg] Input: root = [4,2,7,1,3,6,9] Output:…
Post #54 1.2K
Post #53 1.23K
Post #52 1.19K
Следующая задача: https://leetcode.com/problems/reshape-the-matrix/. Она будет разобрана в 30.01.2020 в 21:00 MSK

Теги предыдущей задачи: связные списки,нерекурсивная реализация,O(n) по времени,O(1) по памяти,рекурсивная реализация,O(n) по памяти

Разбор предыдущей задачи: https://www.youtube.com/watch?v=jqZPEfAbc2s
LeetCode Reshape the Matrix - LeetCode Can you solve this real interview question? Reshape the Matrix - In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one with a different size r x c keeping its original data. You are given an m x n matrix mat…
Post #51 1.16K
Следующая задача: https://leetcode.com/problems/reverse-linked-list/. Она будет разобрана в 28.01.2020 в 21:00 MSK

Теги предыдущей задачи: связные списки,O(1) по времени,O(1) по памяти

Разбор предыдущей задачи: https://www.youtube.com/watch?v=fvbWCjgl4K0
LeetCode Reverse Linked List - LeetCode Can you solve this real interview question? Reverse Linked List - Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: [https://assets.leetcode.com/uploads/2021/02/19/rev1ex1.jpg] Input: head = [1,2,3,4…
Post #50 1.14K
Следующая задача: https://leetcode.com/problems/delete-node-in-a-linked-list/. Она будет разобрана в 26.01.2020 в 21:00 MSK

Теги предыдущей задачи: обработка строк,лексикографический порядок,O(|alphabet|+wordsSizeSum) по времени,O(|alphabet|) по памяти

Разбор предыдущей задачи: https://www.youtube.com/watch?v=VvEujIgV-D0
LeetCode Delete Node in a Linked List - LeetCode Can you solve this real interview question? Delete Node in a Linked List - There is a singly-linked list head and we want to delete a node node in it. You are given the node to be deleted node. You will not be given access to the first node of head. All…
Post #49 1.15K
Следующая задача: https://leetcode.com/problems/verifying-an-alien-dictionary/. Она будет разобрана в 24.01.2020 в 21:00 MSK

Теги предыдущей задачи: обработка строк,O(|alphabet|+|s|+|t|) по времени,O(|alphabet|) по памяти,unicode,utf-8

Разбор предыдущей задачи: https://www.youtube.com/watch?v=wNuRONENMe4
LeetCode Verifying an Alien Dictionary - LeetCode Can you solve this real interview question? Verifying an Alien Dictionary - In an alien language, surprisingly, they also use English lowercase letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters.…
Post #48 1.14K
Следующая задача: https://leetcode.com/problems/valid-anagram/. Она будет разобрана в 22.01.2020 в 21:00 MSK

Теги предыдущей задачи: деревья,O(n) по времени,O(n) по памяти,O(logn) стек

Разбор предыдущей задачи: https://www.youtube.com/watch?v=kwvdyTNC6IQ
LeetCode Valid Anagram - LeetCode Can you solve this real interview question? Valid Anagram - Given two strings s and t, return true if t is an anagram of s, and false otherwise. Example 1: Input: s = "anagram", t = "nagaram" Output: true Example 2: Input: s = "rat", t = "car" Output:…
Post #47 1.17K
Следующая задача: https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/. Она будет разобрана в 20.01.2020 в 21:00 MSK

Теги предыдущей задачи: обработка строк,O(|s|) по времени,O(1) по памяти,римские числа

Разбор предыдущей задачи: https://www.youtube.com/watch?v=ucCArP5ZJtg
LeetCode Convert Sorted Array to Binary Search Tree - LeetCode Can you solve this real interview question? Convert Sorted Array to Binary Search Tree - Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree. Example 1: [https://assets.lee…
Post #46 1.14K
Следующая задача: https://leetcode.com/problems/roman-to-integer/. Она будет разобрана в 18.01.2020 в 21:00 MSK

Теги предыдущей задачи: деревья,O(n) по времени,O(n) по памяти,O(height) по памяти,итератор по двоичному дереву,leetcode 1,leetcode 167

Разбор предыдущей задачи: https://www.youtube.com/watch?v=e3tovJY8AiI
LeetCode Roman to Integer - LeetCode Can you solve this real interview question? Roman to Integer - Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D …
Post #45 1.13K
Следующая задача: https://leetcode.com/problems/two-sum-iv-input-is-a-bst/. Она будет разобрана в 16.01.2020 в 21:00 MSK

Теги предыдущей задачи: обработка строк,системы счисления,O(|s|) по времени,O(1) по памяти

Разбор предыдущей задачи: https://www.youtube.com/watch?v=mDd4FlRXzQo
LeetCode Two Sum IV - Input is a BST - LeetCode Can you solve this real interview question? Two Sum IV - Input is a BST - Given the root of a binary search tree and an integer k, return true if there exist two elements in the BST such that their sum is equal to k, or false otherwise. Example 1: […
Post #44 1.1K
Следующая задача: https://leetcode.com/problems/excel-sheet-column-number/. Она будет разобрана в 14.01.2020 в 21:00 MSK

Теги предыдущей задачи: обработка строк,O(|word|) по времени,O(1) по памяти

Разбор предыдущей задачи: https://www.youtube.com/watch?v=2KLxYS10Y1g
LeetCode Excel Sheet Column Number - LeetCode Can you solve this real interview question? Excel Sheet Column Number - Given a string columnTitle that represents the column title as appears in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA …
Post #43 1.08K
Следующая задача: https://leetcode.com/problems/detect-capital/. Она будет разобрана в 12.01.2020 в 21:00 MSK

Теги предыдущей задачи: деревья,O(n) по времени,O(n) по памяти,рекурсивная реализация,нерекурсивная реализация,vector,list,stack

Разбор предыдущей задачи: https://www.youtube.com/watch?v=ZBu9Y7-NwvI
LeetCode Detect Capital - LeetCode Can you solve this real interview question? Detect Capital - We define the usage of capitals in a word to be right when one of the following cases holds: * All letters in this word are capitals, like "USA". * All letters in this word are not capitals,…
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →