White Blue Green and Yellow Photo Collage Modern New Hire Resources Company Presentation


Download 1.49 Mb.
Pdf ko'rish
Sana03.02.2023
Hajmi1.49 Mb.
#1151148
Bog'liq
Lesson 2



DSA
- Algorithms
Number 1


Course Planning
https://kurbanovxurshid.medium.com/data-structures-and-algorithms-course-plan-1ab912ec1e17


Asked by Amazon


Explanation


Power of Two
https://leetcode.com/problems/power-of-two/


First Theory
8 => 2 * 2 * 2 = 8 = 2^3
5 => can`t be represented


First Solution


Second Theory
8 => 1000
7 => 0111
1000 & 0111 = 0000
5 => 0101
4 => 0100
0101 & 0100 = 0100
https://www.binaryhexconverter.com


Second Solution


Task 1 – Palindrome Number 
https://leetcode.com/problems/palindrome-number/


Task 2 – Power of Three 
https://leetcode.com/problems/power-of-three/


Task 3 – Power of Four 
https://leetcode.com/problems/power-of-four/

Download 1.49 Mb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling