π 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
Computer architecture focuses solely on hardware components.
Anonymous Quiz
52%
β
True
48%
β False
What role does cache memory play in system performance?
Anonymous Quiz
79%
Provides faster access to frequently used data
0%
Replaces the need for a hard drive
14%
Acts as a storage unit for programs
7%
Improves GPU performance
Execution Time Calculation
A processor has the following specs:
Clock Speed: 3 GHz CPI: 2 Total Instructions: 5 billion How much time does it take to execute the program?
A processor has the following specs:
Clock Speed: 3 GHz CPI: 2 Total Instructions: 5 billion How much time does it take to execute the program?
Anonymous Quiz
0%
1.5 seconds
9%
2.5 seconds
91%
3.33 seconds
0%
4 seconds
< Ace Coding /> π
Execution Time Calculation
A processor has the following specs:
Clock Speed: 3 GHz CPI: 2 Total Instructions: 5 billion How much time does it take to execute the program?
A processor has the following specs:
Clock Speed: 3 GHz CPI: 2 Total Instructions: 5 billion How much time does it take to execute the program?
β
Solution
π» Try to do it by yourself before you check the solutions.
π» Try to do it by yourself before you check the solutions.
π Two Pointers Problems upcoming! π§βπ»β‘οΈπ¨βπ»
β A2SV Prep π»
ππ @AceCoding Presents! ππ
β A2SV Prep π»
ππ @AceCoding Presents! ππ
π» Topic: Two Pointers
β The following questions should be done sequentially. Level 1 and Level 2
π‘ 2079. Watering Plants This an Easy Medium
β³ This costed me 5 min
π Problem link : https://leetcode.com/problems/watering-plants/
π‘ 2105. Watering Plants II This one is also an easy medium but it has more edge cases so watch out before you hit submit π
β³ This costed me 15 min; if there is anyone who did this under 10 minutes Excellent, Great job
π Problem link : https://leetcode.com/problems/watering-plants-ii/description/
β The following questions should be done sequentially. Level 1 and Level 2
π‘ 2079. Watering Plants This an Easy Medium
β³ This costed me 5 min
class Solution:
def wateringPlants(self, plants: List[int], capacity: int) -> int:
steps = 0
can = capacity
for i, plant in enumerate(plants):
if plant > can:
steps += (2 * i)
can = capacity
steps += 1
can -= plant
return steps
π Problem link : https://leetcode.com/problems/watering-plants/
π‘ 2105. Watering Plants II This one is also an easy medium but it has more edge cases so watch out before you hit submit π
β³ This costed me 15 min; if there is anyone who did this under 10 minutes Excellent, Great job
class Solution:
def minimumRefill(self, plants: List[int], capacityA: int, capacityB: int) -> int:
refill = 0
L, R = 0, len(plants) - 1
alice, bob = capacityA, capacityB
while L < R:
if plants[L] > alice:
alice = capacityA
refill += 1
if plants[R] > bob:
bob = capacityB
refill += 1
alice -= plants[L]
bob -= plants[R]
L += 1
R -= 1
if L == R:
max_water = max(alice, bob)
if plants[L] > max_water:
refill += 1
return refill
π Problem link : https://leetcode.com/problems/watering-plants-ii/description/
LeetCode
Watering Plants - LeetCode
Can you solve this real interview question? Watering Plants - You want to water n plants in your garden with a watering can. The plants are arranged in a row and are labeled from 0 to n - 1 from left to right where the ith plant is located at x = i. Thereβ¦
π4
Forwarded from A2SV | Africa to Silicon Valley (A2SV)
Applications are Open for A2SV G6 Education!
The time has come for A2SV to welcome new members! Weβre looking for team-oriented individuals with a never-give-up mentality, ready to drive tech excellence and solve impactful challenges.
π Application opens: November 14, 2024
π Deadline: November 20, 2024, at 11:59 PM EAT
π Eligibility
Open to current students from Addis Ababa University (AAU), Addis Ababa Science and Technology University (AASTU), and Adama Science and Technology University (ASTU). If you're not from these schools or have already graduated, stay tuned for future remote applications!
π Requirements
- Familiarity with at least one programming language
- Experience with platforms like LeetCode or Codeforces
- Completed at least 40 problems on LeetCode or Codeforces
π€ Selection Process
- First Round Filtering: Initial application review
- Technical & Behavioral Interviews: For selected candidates, to assess skills and fit for the program
βοΈ Donβt wait! Start your application early to ensure a standout submission. π―
π Apply now: link
#A2SV #TechEducation #EmpoweringAfrica #ApplyNow
The time has come for A2SV to welcome new members! Weβre looking for team-oriented individuals with a never-give-up mentality, ready to drive tech excellence and solve impactful challenges.
π Application opens: November 14, 2024
π Deadline: November 20, 2024, at 11:59 PM EAT
π Eligibility
Open to current students from Addis Ababa University (AAU), Addis Ababa Science and Technology University (AASTU), and Adama Science and Technology University (ASTU). If you're not from these schools or have already graduated, stay tuned for future remote applications!
π Requirements
- Familiarity with at least one programming language
- Experience with platforms like LeetCode or Codeforces
- Completed at least 40 problems on LeetCode or Codeforces
π€ Selection Process
- First Round Filtering: Initial application review
- Technical & Behavioral Interviews: For selected candidates, to assess skills and fit for the program
βοΈ Donβt wait! Start your application early to ensure a standout submission. π―
π Apply now: link
#A2SV #TechEducation #EmpoweringAfrica #ApplyNow
A2SV | Africa to Silicon Valley
Applications are Open for A2SV G6 Education! The time has come for A2SV to welcome new members! Weβre looking for team-oriented individuals with a never-give-up mentality, ready to drive tech excellence and solve impactful challenges. π
Application opens:β¦
π¨ Last call the deadline is today
exam questions.pdf
6.5 KB
β
AASTU 2023 GC COA MID EXAM
Computer organization and architecture Mid exam with correct answers
ππ @AceCoding Presents! ππ
Computer organization and architecture Mid exam with correct answers
ππ @AceCoding Presents! ππ
β€1
Forwarded from GDG On Campus AASTU (πππππ π)
βοΈ Attention Students! Register Now for Google Developer Group Study Sessions!βοΈ
Are you ready to kickstart your tech career or take your skills to the next level?
π§βπ Available Tracks:
1. Data Structures & Algorithms (DSA)
Master problem-solving techniques and boost your coding skills with DSA!
2. Backend Development (Django & Node.js)
Dive into backend development and build powerful server-side applications! βοΈ
3. Mobile Development with Flutter
Create sleek, cross-platform mobile apps that users love! π±
4. Web Development with React
Learn the framework that powers some of the worldβs best applications!
5. Beginners Track
No coding experience? No problem! Learn the essentials of HTML, CSS, and JavaScript from the ground up!
Join a community of creators, builders, and innovators and be part of the future of tech!
Please open Telegram to view this post
VIEW IN TELEGRAM
π»A2SV prep: Sliding window problem
π‘ 2024. Maximize the Confusion of an Exam
Straight forward solution
As you have noticed there are some repetions in the code so I have modularized it into one single function that can calculate the possible maximum length.
https://leetcode.com/problems/maximize-the-confusion-of-an-exam/description/
π‘ 2024. Maximize the Confusion of an Exam
Straight forward solution
class Solution:
def maxConsecutiveAnswers(self, answerKey: str, k: int) -> int:
n = len(answerKey)
max_length = 0
flips = k
l, r = 0, 0
# F -> T
while r < n:
if answerKey[r] == 'F':
flips -= 1
if flips < 0:
if answerKey[l] == 'F':
flips += 1
l += 1
max_length = max(max_length, r - l + 1)
r += 1
flips = k
l, r = 0, 0
# T -> F
while r < n:
if answerKey[r] == 'T':
flips -= 1
if flips < 0:
if answerKey[l] == 'T':
flips += 1
l += 1
max_length = max(max_length, r - l + 1)
r += 1
return max_length
As you have noticed there are some repetions in the code so I have modularized it into one single function that can calculate the possible maximum length.
class Solution:
def maxConsecutiveAnswers(self, answerKey: str, k: int) -> int:
def calculateLength(ans: str):
flips = k
max_length = 0
n = len(answerKey)
l, r = 0, 0
while r < n:
if answerKey[r] == ans:
flips -= 1
if flips < 0:
if answerKey[l] == ans:
flips += 1
l += 1
max_length = max(max_length, r - l + 1)
r += 1
return max_length
return max(calculateLength('T'), calculateLength('F'))
https://leetcode.com/problems/maximize-the-confusion-of-an-exam/description/
LeetCode
Maximize the Confusion of an Exam - LeetCode
Can you solve this real interview question? Maximize the Confusion of an Exam - A teacher is writing a test with n true/false questions, with 'T' denoting true and 'F' denoting false. He wants to confuse the students by maximizing the number of consecutiveβ¦
π£ A2SV Interview Format π£
Get ready for an exciting and comprehensive interview process! Hereβs what to expect:
π Total Duration: 1 Hour 30 Minutes
π Behavioral Interview (First 45 Minutes)
This part of the interview will focus on your past experiences, skills, and motivations.
Be prepared to discuss situations where you demonstrated leadership, teamwork, and problem-solving abilities.
They might ask questions like:
βοΈ Tell me about yourself.
βοΈ What do you know about A2SV and why do you want to join us?
βοΈ Describe a time when you had to step out of your comfort zone to achieve something.
π Technical Interview (Remaining 45 Minutes)
This segment will test your coding and problem-solving skills.
Youβll be given programming challenges to solve in real-time.
Much of this interview will utilize sharepad.io as the collaborative coding editor.
Example questions might include:
Write a function to solve a particular algorithm problem.
Explain your approach to solving a complex data structure challenge.
π§ Preparation Tips:
π Practice Coding: Brush up on your data structures and algorithms. Websites like LeetCode and codeforce are great for practice.
π Stay Calm and Confident: Remember, theyβre not just looking for the right answers but also how you approach problems and handle stress.
Prepare well and best of luck to everyone!π§¨π
Get ready for an exciting and comprehensive interview process! Hereβs what to expect:
π Total Duration: 1 Hour 30 Minutes
π Behavioral Interview (First 45 Minutes)
This part of the interview will focus on your past experiences, skills, and motivations.
Be prepared to discuss situations where you demonstrated leadership, teamwork, and problem-solving abilities.
They might ask questions like:
βοΈ Tell me about yourself.
βοΈ What do you know about A2SV and why do you want to join us?
βοΈ Describe a time when you had to step out of your comfort zone to achieve something.
π Technical Interview (Remaining 45 Minutes)
This segment will test your coding and problem-solving skills.
Youβll be given programming challenges to solve in real-time.
Much of this interview will utilize sharepad.io as the collaborative coding editor.
Example questions might include:
Write a function to solve a particular algorithm problem.
Explain your approach to solving a complex data structure challenge.
π§ Preparation Tips:
π Practice Coding: Brush up on your data structures and algorithms. Websites like LeetCode and codeforce are great for practice.
π Stay Calm and Confident: Remember, theyβre not just looking for the right answers but also how you approach problems and handle stress.
Prepare well and best of luck to everyone!π§¨π
β
Almost Identical question with the above πvery easy if you did the above
π»A2SV prep: Sliding window problem
π‘ 1004. Max Consecutive Ones III
β³2 min on the clock PR for me π
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/max-consecutive-ones-iii/description/
π»A2SV prep: Sliding window problem
π‘ 1004. Max Consecutive Ones III
β³2 min on the clock PR for me π
class Solution:
def longestOnes(self, nums: List[int], k: int) -> int:
max_length = 0
l = 0
for r in range(len(nums)):
if nums[r] == 0:
k -= 1
while k < 0:
if nums[l] == 0:
k += 1
l += 1
max_length = max(max_length, r - l + 1)
return max_length
ππ @AceCoding Presents! ππ
https://leetcode.com/problems/max-consecutive-ones-iii/description/
LeetCode
Max Consecutive Ones III - LeetCode
Can you solve this real interview question? Max Consecutive Ones III - Given a binary array nums and an integer k, return the maximum number of consecutive 1's in the array if you can flip at most k 0's.
Example 1:
Input: nums = [1,1,1,0,0,0,1,1,1,1β¦
Example 1:
Input: nums = [1,1,1,0,0,0,1,1,1,1β¦
< Ace Coding /> π
β
Almost Identical question with the above πvery easy if you did the above π»A2SV prep: Sliding window problem π‘ 1004. Max Consecutive Ones III β³2 min on the clock PR for me π
class Solution: def longestOnes(self, nums: List[int], k: int) -> int: β¦
π¨βπ» PROGRESS βοΈ
π4