π¨ Exciting News π¨
ALX Ethiopia is NOW OPEN! π
Ready to kickstart your career with world-class tech training? π
π° Only $5/month βοΈ
β $200 πΈ
Here are the amazing programs available to you:
πΉ ALX Pathway
πΉ Virtual Assistant
πΉ Professional Foundations
πΉ AI Career Essentials
πΉ Front-End Web Development
πΉ Back-End Web Development
πΉ AWS Cloud Computing
πΉ Salesforce Administrator
πΉ Data Science
πΉ Data Analytics
Don't miss outβ Get started for only $5/month! π₯
π Learn More & Apply: ALX Programs
π Get the full ALX Entrance Assessment Answers: ALX Assessment key
#TechTraining #CareerGrowth #ALX #Ethiopia #FutureLeaders πβ¨
ππ @AceCoding Presents! ππ
ALX Ethiopia is NOW OPEN! π
Ready to kickstart your career with world-class tech training? π
π° Only $5/month βοΈ
β $200 πΈ
Here are the amazing programs available to you:
πΉ ALX Pathway
πΉ Virtual Assistant
πΉ Professional Foundations
πΉ AI Career Essentials
πΉ Front-End Web Development
πΉ Back-End Web Development
πΉ AWS Cloud Computing
πΉ Salesforce Administrator
πΉ Data Science
πΉ Data Analytics
Don't miss outβ Get started for only $5/month! π₯
π Learn More & Apply: ALX Programs
π Get the full ALX Entrance Assessment Answers: ALX Assessment key
#TechTraining #CareerGrowth #ALX #Ethiopia #FutureLeaders πβ¨
ππ @AceCoding Presents! ππ
π₯4
π A2SV Past Interview Questions π
Hey everyone! π’ If you're preparing for an A2SV interview, here are some
common questions you might encounter. Get ready to shine! β¨
Common Questions:
1.Tell me about yourself.
2. What do you know about A2SV and why do you want to join us?
3. Describe a time when you had to step out of your comfort zone to achieve something.
4. How do you give back to your community?
5. What are your strengths and weaknesses?
Additional Questions:
Introduce yourself π©.
What is the hardest decision you've had to make?
Tell us about a time when there was a disagreement in a group. How did you resolve it?
How did you hear about A2SV?
Are you committed to the cause?
Good luck with your preparations! You've got this. πͺπ
Feel free to reach out if you need more tips or have any questions. Let's conquer this together! ππ©βπ»π¨βπ»
I hope this will makes you feel more prepared and confident! If there's anything more you'd like to add or adjust, just let me know in the discussion group π.
Hey everyone! π’ If you're preparing for an A2SV interview, here are some
common questions you might encounter. Get ready to shine! β¨
Common Questions:
1.Tell me about yourself.
2. What do you know about A2SV and why do you want to join us?
3. Describe a time when you had to step out of your comfort zone to achieve something.
4. How do you give back to your community?
5. What are your strengths and weaknesses?
Additional Questions:
Introduce yourself π©.
What is the hardest decision you've had to make?
Tell us about a time when there was a disagreement in a group. How did you resolve it?
How did you hear about A2SV?
Are you committed to the cause?
Good luck with your preparations! You've got this. πͺπ
Feel free to reach out if you need more tips or have any questions. Let's conquer this together! ππ©βπ»π¨βπ»
I hope this will makes you feel more prepared and confident! If there's anything more you'd like to add or adjust, just let me know in the discussion group π.
π2
π‘ Medium leetcode question: 287. Find the Duplicate Number
π’ Using Cycle sort
π¨βπ» Optimized Cycle sort
π΄ Cycle detection Algorithm (Floyd's torties and hare / slow and fast pointer algorithm)
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/find-the-duplicate-number/
π’ Using Cycle sort
class Solution:
def findDuplicate(self, nums: List[int]) -> int:
i = 0
while i < len(nums):
correct_pos = nums[i] - 1
if nums[i] != nums[correct_pos]:
nums[i], nums[correct_pos] = nums[correct_pos], nums[i]
else:
i +=1
for i in range(len(nums)):
if nums[i] != i + 1:
return nums[i]
π¨βπ» Optimized Cycle sort
class Solution:
def findDuplicate(self, nums: List[int]) -> int:
i = 0
while i < len(nums):
if nums[i] != i + 1:
correct_pos = nums[i] - 1
if nums[i] != nums[correct_pos]:
nums[i], nums[correct_pos] = nums[correct_pos], nums[i]
else:
return nums[i]
else:
i += 1
return -1
π΄ Cycle detection Algorithm (Floyd's torties and hare / slow and fast pointer algorithm)
class Solution:
def findDuplicate(self, nums: List[int]) -> int:
slow = nums[nums[0]]
fast = nums[nums[nums[0]]]
while slow != fast:
slow = nums[slow]
fast = nums[nums[fast]]
slow = nums[0]
while slow != fast:
slow = nums[slow]
fast = nums[fast]
return slow
Time complexity : O(n) & Space Complexity: O(1)
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/find-the-duplicate-number/
LeetCode
Find the Duplicate Number - LeetCode
Can you solve this real interview question? Find the Duplicate Number - Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.
There is only one repeated number in nums, return this repeated number.β¦
There is only one repeated number in nums, return this repeated number.β¦
π΄ Cycle detection Algorithm (Floyd's torties and hare / slow and fast pointer algorithm)
ππ @AceCoding Presents! ππ
class Solution:
def findDuplicate(self, nums: List[int]) -> int:
slow = nums[nums[0]]
fast = nums[nums[nums[0]]]
while slow != fast:
slow = nums[slow]
fast = nums[nums[fast]]
slow = nums[0]
while slow != fast:
slow = nums[slow]
fast = nums[fast]
return slow
ππ @AceCoding Presents! ππ
π‘ 1561. Maximum Number of Coins You Can Get
π» This is a very good question on Greedy Algorithm and sorting
for those who don't know Greedy is a type of Algo or technique used to solve some problems efficiently ( By being GREEDY every time π that is why it's called greedy)
π Most Efficient Solution both in time and space complexity
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/maximum-number-of-coins-you-can-get/
π» This is a very good question on Greedy Algorithm and sorting
for those who don't know Greedy is a type of Algo or technique used to solve some problems efficiently ( By being GREEDY every time π that is why it's called greedy)
π Most Efficient Solution both in time and space complexity
class Solution:
def maxCoins(self, piles: List[int]) -> int:
piles_per_person = len(piles) // 3
piles.sort(reverse=True)
sum = 0
for i in range(1, len(piles) - piles_per_person, 2):
sum += piles[i]
return sum
Time complexity : O(n*log n) & Space Complexity: O(1)
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/maximum-number-of-coins-you-can-get/
π1
π¨βπ» Here is a detail explanation for the above questionπ
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/maximum-number-of-coins-you-can-get/
class Solution:
def maxCoins(self, piles: List[int]) -> int:
# first determine how many piles each person will get
piles_per_person = len(piles) // 3
# sort the piles in descending order
piles.sort(reverse=True)
# Hypothetically we want to give the least piles in the sorted pile for bob
# [9,8,7,6,5,4,3,2,1] 1, 2, 3 are given for bob
p = piles_per_person
score = piles[1:-p:2] # starting from the second value and increment by 2 until we reach len(piles) - piles_per_person
return sum(score)
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/maximum-number-of-coins-you-can-get/
LeetCode
Maximum Number of Coins You Can Get - LeetCode
Can you solve this real interview question? Maximum Number of Coins You Can Get - There are 3n piles of coins of varying size, you and your friends will take piles of coins as follows:
* In each step, you will choose any 3 piles of coins (not necessarilyβ¦
* In each step, you will choose any 3 piles of coins (not necessarilyβ¦
π’ A2SV past years interview questions π
Β©οΈEthio Toolkit
This problem is lighter version of a classic interview question: "1561. Maximum Number of Coins You Can Get" π°which we have solved on Ace Coding.
β Solution: Β©οΈAce Coding
π @AceCoding Presents! ππ
Β©οΈEthio Toolkit
You have some apples and a basket that can carry up to 5000 units of weight. Given an integer array weight where weight[i] is the weight of the ith apple,
return the maximum number of apples you can put in the basket.
Example 1:
Input: weight = [100,200,150,1000]
Output: 4
Explanation: All 4 apples can be carried by the basket since their sum of weights is 1450.
Example 2:
Input: weight = [900,950,800,1000,700,800]
Output: 5
Constraints:
1 <= weight.length <= 1000
1 <= weight[i] <= 1000
This problem is lighter version of a classic interview question: "1561. Maximum Number of Coins You Can Get" π°which we have solved on Ace Coding.
β Solution: Β©οΈAce Coding
def maxNumberOfApples(weight):
weight.sort()
total_weight = 0
count = 0
for w in weight:
if total_weight + w <= 5000:
total_weight += w
count += 1
else:
return count
π @AceCoding Presents! ππ
π1
π Quick Reminder!
If you found this problem helpful, make sure to share it with your friends. Remember the saying:
Letβs solve these challenges together and grow as a community! π
ππ @AceCoding Presents! ππ
If you found this problem helpful, make sure to share it with your friends. Remember the saying:
If you want to go fast, go alone. If you want to go far, go together. πͺ
Letβs solve these challenges together and grow as a community! π
ππ @AceCoding Presents! ππ
π€4
π₯ High ROI (Return on Investment) LeetCode Questions! π°π‘
ππ @AceCoding Presents! ππ
ππ @AceCoding Presents! ππ
π‘ 189. Rotate Array
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/rotate-array/description/
class Solution:
def rotate(self, nums: List[int], k: int) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
rotation_point = k % len(nums)
k = rotation_point
if k != 0:
nums[:k], nums[k : ] = nums[-k : ], nums[:-k]
# the rotation_point should be counted for the end of nums
# Ex. [1, 2, 3, 4, 5, 6, 7] nums[:k] = [1, 2, 3]
# But nums[:-k] = [1, 2, 3, 4] which is correct
# nums[-k:] = [5, 6, 7]
class Solution:
def rotate(self, nums: List[int], k: int) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
k = k % len(nums)
def reverse(left, right):
while left < right:
nums[left], nums[right] = nums[right], nums[left]
right -= 1
left += 1
reverse(0, len(nums)-1)
reverse(0, k-1)
reverse(k, len(nums)-1)
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/rotate-array/description/
LeetCode
Rotate Array - LeetCode
Can you solve this real interview question? Rotate Array - Given an integer array nums, rotate the array to the right by k steps, where k is non-negative.
Example 1:
Input: nums = [1,2,3,4,5,6,7], k = 3
Output: [5,6,7,1,2,3,4]
Explanation:
rotate 1β¦
Example 1:
Input: nums = [1,2,3,4,5,6,7], k = 3
Output: [5,6,7,1,2,3,4]
Explanation:
rotate 1β¦
π Heads up, everyone! π
The questions we share here will likely appear in the A2SV technical interviews. Keep an eye on them and practice regularly to boost your preparation! πͺπ
Happy Codingπ»
Stay tuned and don't miss out on these key problems. π§ β¨
The questions we share here will likely appear in the A2SV technical interviews. Keep an eye on them and practice regularly to boost your preparation! πͺπ
Happy Codingπ»
Stay tuned and don't miss out on these key problems. π§ β¨
π1
π£ Update Alert: Info Session RSVP & Location Details!
π Great News! Weβve expanded the RSVP tickets to accommodate more attendees! If you havenβt RSVPβd yet, nowβs your chance to grab a spot and join the action.
π RSVP Now to secure your spot : GDG AASTU x AASTU SEA INFO SESSION π
π Location Reminder: The Info Session will take place at AASTU Old Graduation Hall.
π Study Session Registration:
Interested in the upcoming student study session? Registration will be open at the venue during the event. Be sure to attend to secure your spot!
Spread the word, and we canβt wait to see you on 20 November 2024! Letβs make this event unforgettable. β¨
π Join Us for the INFO SESSION by AASTUSEA! π
Ready to dive into tech? Whether you're brand new, dreaming of becoming a developer, or already coding away, this event is for YOU! No experience neededβjust bring your passion and excitement!
β¨ What's in Store?
π« Connect with Google Developer Groups (GDG) and AASTUSEA
π« Learn about plans and opportunities provided by the Association.
π« Secure your spot in our project preregistration.
π« Get the Details needed to ace Huawei ICT Competition 2024-25, Join Huawei ICT Academy and Get FREE certifications.
π«Learn the basics, get inspired, and kickstart your coding journey
π«Network with fellow tech enthusiasts and mentors
π Date: November 20, 2024
π Time: 8:30 - 11:00 LT
π Location: Old Graduation Hall
ππ RSVP Here ππ
Don't miss this great opportunity to connect and collab with like-minded once!
@AASTUSEA aastu.software
Ready to dive into tech? Whether you're brand new, dreaming of becoming a developer, or already coding away, this event is for YOU! No experience neededβjust bring your passion and excitement!
β¨ What's in Store?
π« Connect with Google Developer Groups (GDG) and AASTUSEA
π« Learn about plans and opportunities provided by the Association.
π« Secure your spot in our project preregistration.
π« Get the Details needed to ace Huawei ICT Competition 2024-25, Join Huawei ICT Academy and Get FREE certifications.
π«Learn the basics, get inspired, and kickstart your coding journey
π«Network with fellow tech enthusiasts and mentors
π Date: November 20, 2024
π Time: 8:30 - 11:00 LT
π Location: Old Graduation Hall
ππ RSVP Here ππ
Don't miss this great opportunity to connect and collab with like-minded once!
@AASTUSEA aastu.software
π5
π Part 2 Quiz: Computer Organization and Architecture π₯
Weβre back with another round of quiz questions on Computer Organization and Architecture! π§
ππ @AceCoding Presents! ππ
Weβre back with another round of quiz questions on Computer Organization and Architecture! π§
ππ @AceCoding Presents! ππ
π₯1
Which of the following best describes computer architecture?
Anonymous Quiz
32%
The physical components of a computer
47%
The logic and structure defining the system's operations
11%
The assembly language of the system
11%
The interconnections of the system's hardware
Which part of a computer system is primarily concerned with the implementation of the instruction set?
Anonymous Quiz
18%
Operating System
41%
Computer Architecture
41%
Computer Organization
0%
Compiler
Which of the following is NOT a component of computer organization?
Anonymous Quiz
6%
ALU (Arithmetic Logic Unit)
22%
Bus system
17%
Cache memory
56%
Instruction set design
The ____________ specifies the logical layout of the computer and defines how software interacts with the hardware.
Anonymous Quiz
44%
Instruction Set Architecture (ISA)
19%
Control Unit
6%
CPU Registers
31%
Bus System