Kun masalasi: 352. Data Stream as Disjoint Intervals
Qiyinlik darajasi: Qiyin
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
LeetCode
Data Stream as Disjoint Intervals - LeetCode
Can you solve this real interview question? Data Stream as Disjoint Intervals - Given a data stream input of non-negative integers a1, a2, ..., an, summarize the numbers seen so far as a list of disjoint intervals.
Implement the SummaryRanges class:
*β¦
Implement the SummaryRanges class:
*β¦
π1
Kun masalasi: 460. LFU Cache
Qiyinlik darajasi: Qiyin
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
LeetCode
LFU Cache - LeetCode
Can you solve this real interview question? LFU Cache - Design and implement a data structure for a Least Frequently Used (LFU) [https://en.wikipedia.org/wiki/Least_frequently_used] cache.
Implement the LFUCache class:
* LFUCache(int capacity) Initializesβ¦
Implement the LFUCache class:
* LFUCache(int capacity) Initializesβ¦
π1
Kun masalasi: 1137. N-th Tribonacci Number
Qiyinlik darajasi: Oson
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
LeetCode
N-th Tribonacci Number - LeetCode
Can you solve this real interview question? N-th Tribonacci Number - The Tribonacci sequence Tn is defined as follows:
T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0.
Given n, return the value of Tn.
Example 1:
Input: n = 4
Output:β¦
T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0.
Given n, return the value of Tn.
Example 1:
Input: n = 4
Output:β¦
π1
This media is not supported in your browser
VIEW IN TELEGRAM
π14π₯4π2
Kun masalasi: 1071. Greatest Common Divisor of Strings
Qiyinlik darajasi: Oson
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
LeetCode
Greatest Common Divisor of Strings - LeetCode
Can you solve this real interview question? Greatest Common Divisor of Strings - For two strings s and t, we say "t divides s" if and only if s = t + t + t + ... + t + t (i.e., t is concatenated with itself one or more times).
Given two strings str1 andβ¦
Given two strings str1 andβ¦
Please open Telegram to view this post
VIEW IN TELEGRAM
Proexe ga ishga kirganimga 2 oydan oshibdi. Tez-tez hech nimadan hech nima hamma uchun nimadir syurpriz qilib xursand qiladigan odamlar meni qiziqtiradi... Eng qiziq joyi, bu sizlarga deb ham aytmaydi va shunchaki stol ustiga terib qo'yadi. Kim qilganini salkam hech kim bilmaydi. Bunday odamlarni kim deb atash hammani o'ziga)
π14π₯6β€3
Kun masalasi: 953. Verifying an Alien Dictionary
Qiyinlik darajasi: Oson
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
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.β¦
π1
Yangi Android kanali nomini qanday bo'lsa yaxshi deb o'ylaysiz?
Anonymous Poll
23%
KotlinHere
68%
JavaHere Android
10%
Kommentda qoldiraman
π1
Kun masalasi: 6. Zigzag Conversion
Qiyinlik darajasi: O'rta
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
LeetCode
Zigzag Conversion - LeetCode
Can you solve this real interview question? Zigzag Conversion - The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
Aβ¦
P A H N
Aβ¦
Kun masalasi: 567. Permutation in String
Qiyinlik darajasi: O'rta
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
LeetCode
Permutation in String - LeetCode
Can you solve this real interview question? Permutation in String - Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise.
In other words, return true if one of s1's permutations is the substring of s2.
Exampleβ¦
In other words, return true if one of s1's permutations is the substring of s2.
Exampleβ¦
Kun masalasi: 438. Find All Anagrams in a String
Qiyinlik darajasi: O'rta
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
LeetCode
Find All Anagrams in a String - LeetCode
Can you solve this real interview question? Find All Anagrams in a String - Given two strings s and p, return an array of all the start indices of p's anagrams in s. You may return the answer in any order.
Example 1:
Input: s = "cbaebabacd", p = "abc"β¦
Example 1:
Input: s = "cbaebabacd", p = "abc"β¦
Kun masalasi: 1470. Shuffle the Array
Qiyinlik darajasi: Oson
Sizda bu masalani yechish uchun qanday fikr bor? Agar biror idea bo'lsa kommentda qoldiring. Masala yechim topishi uchun sizning ideangiz yordam berishi mumkin...
πππ
Bizni kuzatishda davom eting
Telegram | Youtube
Please open Telegram to view this post
VIEW IN TELEGRAM
LeetCode
Shuffle the Array - LeetCode
Can you solve this real interview question? Shuffle the Array - Given the array nums consisting of 2n elements in the form [x1,x2,...,xn,y1,y2,...,yn].
Return the array in the form [x1,y1,x2,y2,...,xn,yn].
Example 1:
Input: nums = [2,5,1,3,4,7], nβ¦
Return the array in the form [x1,y1,x2,y2,...,xn,yn].
Example 1:
Input: nums = [2,5,1,3,4,7], nβ¦