Xamma narsa biz xohlaganday bo’lavermaydi. Biz kecha Geneva 🇨🇭ga etib bora olmadik. Kecha France 🇫🇷 Lyon shaxrida qoldik. Lyonda kinomatographiyaga asos solgan aka uka Lumiere va dunyoga “Kichick Shaxzoda” asari bilan taniqli Antoine de Saint-Exupéry tug’ilgan. Men “Kichik Shaxzoda” bolalar kitobi deb oylagandim. Shuning uchun bu asar bilan 37 yoshimda tanishdim. Bu kitob aslo kichik bolalar uchun emas. Shuning uchun bu kitobni boshqalarga xam taklif qilgan bo’lardim.
A goal without a plan is just a wish.
- Sait-Exupéryni
@khamidulla_inoyatov_microblog
A goal without a plan is just a wish.
- Sait-Exupéryni
@khamidulla_inoyatov_microblog
👍4🔥2
Day 042
Kun masalalari:
🟢 108. Convert Sorted Array to Binary Search Tree
🟡 814. Binary Tree Pruning
O’qish uchun material:
*nix dagi quyidagi komanda bilan
- df
DIY:
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
Javoblar:
🟢 637. Average of Levels in Binary Tree
🟡 1448. Count Good Nodes in Binary Tree
#SDM
@khamidulla_inoyatov_microblog
Kun masalalari:
🟢 108. Convert Sorted Array to Binary Search Tree
🟡 814. Binary Tree Pruning
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- df
DIY:
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
cd ~
df
df -h
df /dev
Javoblar:
🟢 637. Average of Levels in Binary Tree
🟡 1448. Count Good Nodes in Binary Tree
#SDM
@khamidulla_inoyatov_microblog
👍2
Day 043
Kun masalalari:
🟢 872. Leaf-Similar Trees
🟡 2196. Create Binary Tree From Descriptions
O’qish uchun material:
*nix dagi quyidagi komanda bilan
- dd
DIY:
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
Javoblar:
🟢 108. Convert Sorted Array to Binary Search Tree
🟡 814. Binary Tree Pruning
#SDM
@khamidulla_inoyatov_microblog
Kun masalalari:
🟢 872. Leaf-Similar Trees
🟡 2196. Create Binary Tree From Descriptions
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- dd
DIY:
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
cd ~
touch input.md
echo "we are testing dd command" >> input.md
cat input.md
dd if=input.md of=output.md conv=ucase
cat output.md
Javoblar:
🟢 108. Convert Sorted Array to Binary Search Tree
🟡 814. Binary Tree Pruning
#SDM
@khamidulla_inoyatov_microblog
🔥2
Day 044
Kun masalalari:
🟢 606. Construct String from Binary Tree
🟡 230. Kth Smallest Element in a BST
O’qish uchun material:
*nix dagi quyidagi komanda bilan
- diff
DIY:
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
Javoblar:
🟢 872. Leaf-Similar Trees
🟡 2196. Create Binary Tree From Descriptions
#SDM
@khamidulla_inoyatov_microblog
PS: Uzur kundlik masalalar o’z vaqtida yuborishga vaqt bo’lmayapti.
Kun masalalari:
🟢 606. Construct String from Binary Tree
🟡 230. Kth Smallest Element in a BST
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- diff
DIY:
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
cd ~
touch file1.md
echo "Apple\nBanana\nCherry\nDurian" >> file1.md
touch file2.md
echo "Apple\nBanana\nCherry\ndurian" >> file2.md
diff file1.md file2.md
diff -i file1.md file2.md
Javoblar:
🟢 872. Leaf-Similar Trees
🟡 2196. Create Binary Tree From Descriptions
#SDM
@khamidulla_inoyatov_microblog
PS: Uzur kundlik masalalar o’z vaqtida yuborishga vaqt bo’lmayapti.
👍2
Physics Problem: The Leaning Tower of Pisa
The Leaning Tower of Pisa is an iconic structure that has captured the imagination of people worldwide. Suppose you are a physics enthusiast visiting the tower, and you decide to conduct an experiment to determine the angle of inclination and its implications on the tower's stability.
Problem Statement:
You have been given the task of calculating the angle of inclination of the Leaning Tower of Pisa and investigating its stability. To achieve this, you will need to gather the following information:
1. Height of the Tower: The height of the tower is approximately 56 meters (h = 56 m).
2. Distance from the Top: You measure the distance from the top of the tower to its center (d = 1.2 m).
3. Mass of the Tower: The total mass of the tower is 14,500 metric tons (m = 14,500,000 kg).
4. Acceleration due to Gravity: The acceleration due to gravity is 9.81 m/s² (g = 9.81 m/s²).
Part 1: Angle of Inclination
a) Calculate the angle of inclination (θ) of the Leaning Tower of Pisa using the given height and distance from the top to the center.
Part 2: Stability Analysis
b) Given the mass of the tower and its angle of inclination, analyze the stability of the tower. Determine whether the tower is in equilibrium or not.
c) Discuss the factors that contribute to the stability of the tower despite its inclined position.
Hints:
1. For Part 1, you can use trigonometry to calculate the angle of inclination (θ) using the height (h) and distance from the top to the center (d) of the tower.
2. For Part 2, consider the center of mass of the tower and how it relates to the base of the tower in its inclined position.
Note: When conducting experiments or calculations related to real-world structures like the Leaning Tower of Pisa, ensure to prioritize safety and respect any restrictions or guidelines set by the authorities responsible for the preservation of such landmarks.
The Leaning Tower of Pisa is an iconic structure that has captured the imagination of people worldwide. Suppose you are a physics enthusiast visiting the tower, and you decide to conduct an experiment to determine the angle of inclination and its implications on the tower's stability.
Problem Statement:
You have been given the task of calculating the angle of inclination of the Leaning Tower of Pisa and investigating its stability. To achieve this, you will need to gather the following information:
1. Height of the Tower: The height of the tower is approximately 56 meters (h = 56 m).
2. Distance from the Top: You measure the distance from the top of the tower to its center (d = 1.2 m).
3. Mass of the Tower: The total mass of the tower is 14,500 metric tons (m = 14,500,000 kg).
4. Acceleration due to Gravity: The acceleration due to gravity is 9.81 m/s² (g = 9.81 m/s²).
Part 1: Angle of Inclination
a) Calculate the angle of inclination (θ) of the Leaning Tower of Pisa using the given height and distance from the top to the center.
Part 2: Stability Analysis
b) Given the mass of the tower and its angle of inclination, analyze the stability of the tower. Determine whether the tower is in equilibrium or not.
c) Discuss the factors that contribute to the stability of the tower despite its inclined position.
Hints:
1. For Part 1, you can use trigonometry to calculate the angle of inclination (θ) using the height (h) and distance from the top to the center (d) of the tower.
2. For Part 2, consider the center of mass of the tower and how it relates to the base of the tower in its inclined position.
Note: When conducting experiments or calculations related to real-world structures like the Leaning Tower of Pisa, ensure to prioritize safety and respect any restrictions or guidelines set by the authorities responsible for the preservation of such landmarks.
👍1
Day 045
Kun masalalari:
🟢 257. Binary Tree Paths
🟡 513. Find Bottom Left Tree Value
O’qish uchun material:
*nix dagi quyidagi komanda bilan
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
🟢 606. Construct String from Binary Tree
🟡 230. Kth Smallest Element in a BST
#SDM
@khamidulla_inoyatov_microblog
Kun masalalari:
🟢 257. Binary Tree Paths
🟡 513. Find Bottom Left Tree Value
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- cmp
DIY:*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
cd ~
touch file1.md
echo "Apple\nBanana\nCherry\nDurian" >> file1.md
touch file2.md
echo "Apple\nBanana\nCherry\ndurian" >> file2.md
cmp file1.md file2.md
cp file2.md file3.md
cmp file2.md file3.md
Javoblar:🟢 606. Construct String from Binary Tree
🟡 230. Kth Smallest Element in a BST
#SDM
@khamidulla_inoyatov_microblog
🎉3
Day 046
Kun masalalari:
🟢 653. Two Sum IV - Input is a BST
🟡 515. Find Largest Value in Each Tree Row
O’qish uchun material:
*nix dagi quyidagi komanda bilan
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
🟢 257. Binary Tree Paths
🟡 513. Find Bottom Left Tree Value
#SDM
@khamidulla_inoyatov_microblog
Kun masalalari:
🟢 653. Two Sum IV - Input is a BST
🟡 515. Find Largest Value in Each Tree Row
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- md5sum
DIY:*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
cd ~
touch file.md
echo "We are testing md5sum" >> file.md
md5sum file.md
cp file.md file2.md
md5sum file2.md
echo " " >> file.md
md5sum file.md
Javoblar:🟢 257. Binary Tree Paths
🟡 513. Find Bottom Left Tree Value
#SDM
@khamidulla_inoyatov_microblog
👍3
Day 047
Kun masalalari:
🟢 783. Minimum Distance Between BST Nodes
🟡 2265. Count Nodes Equal to Average of Subtree
O’qish uchun material:
*nix dagi quyidagi komanda bilan
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
🟢 653. Two Sum IV - Input is a BST
🟡 515. Find Largest Value in Each Tree Row
#SDM
@khamidulla_inoyatov_microblog
Kun masalalari:
🟢 783. Minimum Distance Between BST Nodes
🟡 2265. Count Nodes Equal to Average of Subtree
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- shasum
*DIY:**nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
cd ~
touch file.md
echo "We are testing shasum" >> file.md
shasum file.md
shasum -a 256 file.md
cp file.md file2.md
shasum file2.md
echo " " >> file2.md
shasum file2.md
Javoblar:🟢 653. Two Sum IV - Input is a BST
🟡 515. Find Largest Value in Each Tree Row
#SDM
@khamidulla_inoyatov_microblog
👍2🔥2
Piazza Del Popolo
Men o’qigan kitob qaxramonlari mana shu Piazza Del Popolo da uchrashishadi. Shu kitob kim tomonidan yozilganligi, kitob nomi va shu erda uchrashgan qaxramonlarni otini komentda yozgan odamga Amsterdamdan kichik esdalik berib yuboraman @khumoyun_codes dan.
Men o’qigan kitob qaxramonlari mana shu Piazza Del Popolo da uchrashishadi. Shu kitob kim tomonidan yozilganligi, kitob nomi va shu erda uchrashgan qaxramonlarni otini komentda yozgan odamga Amsterdamdan kichik esdalik berib yuboraman @khumoyun_codes dan.
🔥1🤔1
Day 048
Kun masalalari:
🟢 100. Same Tree
🟡 865. Smallest Subtree with all the Deepest Nodes
O’qish uchun material:
*nix dagi quyidagi komanda bilan
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
🟢 783. Minimum Distance Between BST Nodes
🟡 2265. Count Nodes Equal to Average of Subtree
#SDM
@khamidulla_inoyatov_microblog
Kun masalalari:
🟢 100. Same Tree
🟡 865. Smallest Subtree with all the Deepest Nodes
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- shutdown
DIY:*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring.
cd ~
sudo shutdown -h +2 "This is a scheduled reboot"
Javoblar:🟢 783. Minimum Distance Between BST Nodes
🟡 2265. Count Nodes Equal to Average of Subtree
#SDM
@khamidulla_inoyatov_microblog
👍7
Day 049
Kun masalalari:
🟢 530. Minimum Absolute Difference in BST
🟡 103. Binary Tree Zigzag Level Order Traversal
O’qish uchun material:
*nix dagi quyidagi komanda bilan
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring. Buning uchun sizga 2 ta Terminal kerak bo’ladi. Terminal 1 dan komandani bajarib, uning natijasini Terminal 2 da ham ko’rishingiz mumkin. Kerakli xabarni qoldirganingizdan so’ng
Terminal 1:
🟢 100. Same Tree
🟡 865. Smallest Subtree with all the Deepest Nodes
#SDM
@khamidulla_inoyatov_microblog
Kun masalalari:
🟢 530. Minimum Absolute Difference in BST
🟡 103. Binary Tree Zigzag Level Order Traversal
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- write
DIY:*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring. Buning uchun sizga 2 ta Terminal kerak bo’ladi. Terminal 1 dan komandani bajarib, uning natijasini Terminal 2 da ham ko’rishingiz mumkin. Kerakli xabarni qoldirganingizdan so’ng
Ctrl+C
orqali xabar jo’natishni to’xtatishingiz mumkinTerminal 1:
cd ~
write $(whoami)
Hello
How are you doing?
Javoblar:🟢 100. Same Tree
🟡 865. Smallest Subtree with all the Deepest Nodes
#SDM
@khamidulla_inoyatov_microblog
👍4
Day 050
Kun masalalari:
🟢 404. Sum of Left Leaves
🟡 623. Add One Row to Tree
O’qish uchun material:
*nix dagi quyidagi komanda bilan
*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring. Buning uchun sizga 2 ta Terminal kerak bo’ladi. Terminal 1 dan komandani bajarib, uning natijasini Terminal 2 da ham ko’rishingiz mumkin.
Terminal 1:
🟢 530. Minimum Absolute Difference in BST
🟡 103. Binary Tree Zigzag Level Order Traversal
#SDM
@khamidulla_inoyatov_microblog
Kun masalalari:
🟢 404. Sum of Left Leaves
🟡 623. Add One Row to Tree
O’qish uchun material:
*nix dagi quyidagi komanda bilan
man <command>
orqali tanishing:- wall
DIY:*nix systemasda quyidagi komandalarni ketma-ket bajarib ko’ring. Buning uchun sizga 2 ta Terminal kerak bo’ladi. Terminal 1 dan komandani bajarib, uning natijasini Terminal 2 da ham ko’rishingiz mumkin.
Terminal 1:
cd ~
wall "The system will be restarted in 10 minutes"
Javoblar:🟢 530. Minimum Absolute Difference in BST
🟡 103. Binary Tree Zigzag Level Order Traversal
#SDM
@khamidulla_inoyatov_microblog
👍3🔥1