Forwarded from Ma'rufjon Ikromjonov
YouTube
30 minutda Androidga ilova yaratamiz! || Sherzodbek Muhammadiev
Dasturlash kurslariga yozilish uchun ro'yxatdan o'ting: https://forms.amocrm.ru/rdrdxlc
Telegram kanal: https://t.me/gitauz
Instagram: https://www.instagram.com/gita.uz?igsh=MTVzbzVqZGtrYzVh&utm_source=qr
Youtube: https://youtube.com/@gitauzoffici…
Telegram kanal: https://t.me/gitauz
Instagram: https://www.instagram.com/gita.uz?igsh=MTVzbzVqZGtrYzVh&utm_source=qr
Youtube: https://youtube.com/@gitauzoffici…
Forwarded from Ma'rufjon Ikromjonov
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…
Grid cells are connected horizontally/vertically (not diagonally). The…
Yaxshi 👍 mana LeetCode’dagi ENG OSON hisoblanadigan 10 ta “Math” yo‘nalishidagi MEDIUM masalalar. Bular *medium* bo‘lsa ham, mantiqi yengil, formulaga tayangan.
---
## 🔢 ENG OSON 10 TA MEDIUM (Math) MASALA
### 1️⃣ 12. Integer to Roman
👉 Sonni Rim raqamiga aylantirish
🔹 Faqat mapping + ayirish
🔹 Murakkab algoritm yo‘q
---
### 2️⃣ 43. Multiply Strings
👉 Ikkita katta sonni string ko‘rinishida ko‘paytirish
🔹 Oddiy ustunlab ko‘paytirish
🔹 BigInteger ishlatmasdan
---
### 3️⃣ 50. Pow(x, n)
👉
🔹 Fast Power (bo‘lish orqali)
🔹 Klassik math masala
---
### 4️⃣ 7. Reverse Integer
👉 Sonni teskarisiga o‘girish
🔹 Overflow’ga e’tibor
🔹 Toza arifmetika
---
### 5️⃣ 29. Divide Two Integers
👉
🔹 Bit shift
🔹 Math + logic
---
### 6️⃣ 166. Fraction to Recurring Decimal
👉 Kasrni o‘nlik songa aylantirish
🔹 Qoldiqni kuzatish
🔹 Map bilan oson
---
### 7️⃣ 633. Sum of Square Numbers
👉
🔹 Two pointers
🔹 Math + sqrt
---
### 8️⃣ 858. Mirror Reflection
👉 LCM (eng kichik umumiy karrali)
🔹 Sof matematik formula
🔹 Kod qisqa
---
### 9️⃣ 365. Water and Jug Problem
👉 Suv o‘lchash masalasi
🔹 GCD asosida
🔹 Juda klassik math
---
### 🔟 869. Reordered Power of 2
👉 Raqamlarni joyini almashtirib 2 ning darajasi bo‘ladimi
🔹 Digit count
🔹 Math + string
---
## 🎯 Tavsiya
Agar eng-eng osonidan boshlamoqchi bo‘lsang, shu tartibda qil:
1. 7 → Reverse Integer
2. 50 → Pow(x,n)
3. 633 → Sum of Square Numbers
4. 365 → Water and Jug Problem
Agar xohlasang:
* 📌 faqat 1–2 qator formulali masalalar
* 📌 yoki Kotlin / Java uchun eng mos 5 tasi
Qaysi yo‘nalishda davom etamiz?
---
## 🔢 ENG OSON 10 TA MEDIUM (Math) MASALA
### 1️⃣ 12. Integer to Roman
👉 Sonni Rim raqamiga aylantirish
🔹 Faqat mapping + ayirish
🔹 Murakkab algoritm yo‘q
---
### 2️⃣ 43. Multiply Strings
👉 Ikkita katta sonni string ko‘rinishida ko‘paytirish
🔹 Oddiy ustunlab ko‘paytirish
🔹 BigInteger ishlatmasdan
---
### 3️⃣ 50. Pow(x, n)
👉
xⁿ ni hisoblash🔹 Fast Power (bo‘lish orqali)
🔹 Klassik math masala
---
### 4️⃣ 7. Reverse Integer
👉 Sonni teskarisiga o‘girish
🔹 Overflow’ga e’tibor
🔹 Toza arifmetika
---
### 5️⃣ 29. Divide Two Integers
👉
/ va * ishlatmasdan bo‘lish🔹 Bit shift
🔹 Math + logic
---
### 6️⃣ 166. Fraction to Recurring Decimal
👉 Kasrni o‘nlik songa aylantirish
🔹 Qoldiqni kuzatish
🔹 Map bilan oson
---
### 7️⃣ 633. Sum of Square Numbers
👉
a² + b² = c bo‘ladimi🔹 Two pointers
🔹 Math + sqrt
---
### 8️⃣ 858. Mirror Reflection
👉 LCM (eng kichik umumiy karrali)
🔹 Sof matematik formula
🔹 Kod qisqa
---
### 9️⃣ 365. Water and Jug Problem
👉 Suv o‘lchash masalasi
🔹 GCD asosida
🔹 Juda klassik math
---
### 🔟 869. Reordered Power of 2
👉 Raqamlarni joyini almashtirib 2 ning darajasi bo‘ladimi
🔹 Digit count
🔹 Math + string
---
## 🎯 Tavsiya
Agar eng-eng osonidan boshlamoqchi bo‘lsang, shu tartibda qil:
1. 7 → Reverse Integer
2. 50 → Pow(x,n)
3. 633 → Sum of Square Numbers
4. 365 → Water and Jug Problem
Agar xohlasang:
* 📌 faqat 1–2 qator formulali masalalar
* 📌 yoki Kotlin / Java uchun eng mos 5 tasi
Qaysi yo‘nalishda davom etamiz?
Albatta, Ahmadali 👍
Mana array (massiv) bo‘yicha LeetCode va oddiy masalalardan eng oson 10 ta keltiraman. Bular yangi boshlovchilar uchun juda mos.
---
## 🟢 Array — OSON 10 MASALA
### 1️⃣ 1. Two Sum
* Arrayda ikkita elementni topish, ularning yig‘indisi
---
### 2️⃣ 27. Remove Element
* Arraydan ma’lum bir elementni olib tashlash.
---
### 3️⃣ 35. Search Insert Position
* Sorted arrayda element qayerga tushishi kerakligini topish.
---
### 4️⃣ 66. Plus One
* Arraydagi raqamlar sonini 1 ga oshirish (
---
### 5️⃣ 169. Majority Element
* Arrayda eng ko‘p uchraydigan elementni topish.
---
### 6️⃣ 1480. Running Sum of 1d Array
* Array elementlarining running sum’ini hisoblash.
---
### 7️⃣ 118. Pascal's Triangle
* Array yordamida Pascal uchburchagini yaratish.
---
### 8️⃣ 704. Binary Search
* Sorted arrayda berilgan elementni binary search yordamida topish.
---
### 9️⃣ 1351. Count Negative Numbers in a Sorted Matrix
* Sorted 2D arrayda manfiy sonlarni sanash.
---
### 🔟 1342. Number of Steps to Reduce a Number to Zero
* Arrayda emas, lekin sonni
---
Agar xohlasang, men:
* 🧑💻 shu 10 ta masalani tartib bilan Java kodi bilan yechib berish
* 🧪 test-case bilan tushuntirish
* 📈 boshlang‘ich → o‘rtacha reja tuzish
Qaysi usulni qilamiz?
Mana array (massiv) bo‘yicha LeetCode va oddiy masalalardan eng oson 10 ta keltiraman. Bular yangi boshlovchilar uchun juda mos.
---
## 🟢 Array — OSON 10 MASALA
### 1️⃣ 1. Two Sum
* Arrayda ikkita elementni topish, ularning yig‘indisi
target ga teng bo‘lsin.---
### 2️⃣ 27. Remove Element
* Arraydan ma’lum bir elementni olib tashlash.
---
### 3️⃣ 35. Search Insert Position
* Sorted arrayda element qayerga tushishi kerakligini topish.
---
### 4️⃣ 66. Plus One
* Arraydagi raqamlar sonini 1 ga oshirish (
digits[]).---
### 5️⃣ 169. Majority Element
* Arrayda eng ko‘p uchraydigan elementni topish.
---
### 6️⃣ 1480. Running Sum of 1d Array
* Array elementlarining running sum’ini hisoblash.
---
### 7️⃣ 118. Pascal's Triangle
* Array yordamida Pascal uchburchagini yaratish.
---
### 8️⃣ 704. Binary Search
* Sorted arrayda berilgan elementni binary search yordamida topish.
---
### 9️⃣ 1351. Count Negative Numbers in a Sorted Matrix
* Sorted 2D arrayda manfiy sonlarni sanash.
---
### 🔟 1342. Number of Steps to Reduce a Number to Zero
* Arrayda emas, lekin sonni
0 ga tushirish uchun steps hisoblash (o‘xshash array bilan mashq qilish mumkin).---
Agar xohlasang, men:
* 🧑💻 shu 10 ta masalani tartib bilan Java kodi bilan yechib berish
* 🧪 test-case bilan tushuntirish
* 📈 boshlang‘ich → o‘rtacha reja tuzish
Qaysi usulni qilamiz?
Forwarded from Gozilla Bot | Скачать Видео из Youtube
This media is not supported in your browser
VIEW IN TELEGRAM
📼 1920p, 💾 10.8MB, @Gozilla_bot
Forwarded from Gozilla Bot | Скачать Видео из Youtube
Media is too big
VIEW IN TELEGRAM
📼 1080p, 💾 255.7MB, @Gozilla_bot
Forwarded from Gozilla Bot | Скачать Видео из Youtube
Media is too big
VIEW IN TELEGRAM
📼 1080p, 💾 255.7MB, @Gozilla_bot
Forwarded from Gozilla Bot | Скачать Видео из Youtube
Media is too big
VIEW IN TELEGRAM
📼 360p, 💾 46.9MB, @Gozilla_bot
Forwarded from Gozilla Bot | Скачать Видео из Youtube
This media is not supported in your browser
VIEW IN TELEGRAM
📼 1280p, 💾 1.5MB, @Gozilla_bot
Forwarded from Gozilla Bot | Скачать Видео из Youtube
This media is not supported in your browser
VIEW IN TELEGRAM
📼 640p, 💾 914.7KB, @Gozilla_bot
Forwarded from AUDIO SAVED BOT
This media is not supported in your browser
VIEW IN TELEGRAM
📥 @AudioSavedBot orqali yuklab olindi
Forwarded from AUDIO SAVED BOT
This media is not supported in your browser
VIEW IN TELEGRAM
📥 @AudioSavedBot orqali yuklab olindi
Forwarded from AUDIO SAVED BOT
This media is not supported in your browser
VIEW IN TELEGRAM
📥 @AudioSavedBot orqali yuklab olindi
🟢 Easy Array LeetCode (TOP 20)
1 – Two Sum
26 – Remove Duplicates from Sorted Array
27 – Remove Element
35 – Search Insert Position
66 – Plus One
88 – Merge Sorted Array
121 – Best Time to Buy and Sell Stock
136 – Single Number
169 – Majority Element
189 – Rotate Array
217 – Contains Duplicate
283 – Move Zeroes
414 – Third Maximum Number
448 – Find All Numbers Disappeared in an Array
485 – Max Consecutive Ones
561 – Array Partition
724 – Find Pivot Index
977 – Squares of a Sorted Array
1480 – Running Sum of 1d Array
1929 – Concatenation of Array
1 – Two Sum
26 – Remove Duplicates from Sorted Array
27 – Remove Element
35 – Search Insert Position
66 – Plus One
88 – Merge Sorted Array
121 – Best Time to Buy and Sell Stock
136 – Single Number
169 – Majority Element
189 – Rotate Array
217 – Contains Duplicate
283 – Move Zeroes
414 – Third Maximum Number
448 – Find All Numbers Disappeared in an Array
485 – Max Consecutive Ones
561 – Array Partition
724 – Find Pivot Index
977 – Squares of a Sorted Array
1480 – Running Sum of 1d Array
1929 – Concatenation of Array