₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,000 members, 8,419,871 topics. Date: Thursday, 04 June 2026 at 05:27 AM

Toggle theme

EngrAAS's Posts

Nairaland ForumEngrAAS's ProfileEngrAAS's Posts

1 2 (of 2 pages)

ProgrammingRe: How Do I Stop My System From Consuming Much Data by engrAAS: 6:00pm On Oct 02, 2024
Maxxim:
Here's what I did👇🏿
Thanks a lot boss
ProgrammingRe: How Do I Stop My System From Consuming Much Data by engrAAS: 10:53pm On Oct 01, 2024
Maxxim:
I was thinking having this windows 10 was a blessing due to seamless application usage and installation but this days I have to admit if care is not taken I'll become homeless very soon, in the past few days I've been spending not less than 10gig per day just by only using google chrome.
Abeg has anyone also experienced this, how to curb this situation??

Nb: I've followed almost every advice I found online even ending tasks on task manager, stopping background data, and setting metered connection.
Good day boss, I am having similar issue with you currently, please how did you later solve it, checking the data usage I see that chrome and system is consuming more
ProgrammingRe: Algorithm And Data Structure Study Section by engrAAS: 8:52pm On Jan 07, 2023
namikaze:
wrong answer, solved a completely different problem (it implemented a red black tree, which I'm guessing is still buggy).
I've tried chatGPT before, it always gives wrong solutions except for the most basic and generic problems, you'd be better of solving a problem from scratch than debugging it's solutions.
Noted, thanks for the correction
ProgrammingRe: Algorithm And Data Structure Study Section by engrAAS: 12:37pm On Jan 07, 2023
namikaze:
let's all try this:

You are given a stream of numbers. Compute the median for
each new element .
Eg. Given [2, 1, 4, 7, 2, 0, 5], the algorithm should output [2, 1.5,
2, 3.0, 2, 2, 2]
Here's a starting point:

def running_median(stream):
# Fill this in.
running_median([2, 1, 4, 7, 2, 0, 5])
# 2 1.5 2 3.0 2 2.0 2


remember, your solution could be in any language and should be from an online code editor like replit/onecompiler.
import sys
import math

class Node:
def __init__(self, value, color, left=None, right=None, parent=None):
self.value = value
self.color = color
self.left = left
self.right = right
self.parent = parent

class RedBlackTree:
def __init__(self):
self.root = None

def insert(self, value):
new_node = Node(value, "RED"wink
self.insert_node(new_node)

def insert_node(self, new_node):
if self.root is None:
# the tree is empty, the new node is the root
self.root = new_node
else:
current_node = self.root
while True:
if new_node.value < current_node.value:
# the new node goes in the left subtree
if current_node.left is None:
# the current node has no left child, the new node becomes its left child
current_node.left = new_node
new_node.parent = current_node
self.rebalance(new_node)
break
else:
# the current node has a left child, we continue the search in the left subtree
current_node = current_node.left
else:
# the new node goes in the right subtree
if current_node.right is None:
# the current node has no right child, the new node becomes its right child
current_node.right = new_node
new_node.parent = current_node
self.rebalance(new_node)
break
else:
# the current node has a right child, we continue the search in the right subtree
current_node = current_node.right

def find_node(self, value):
current_node = self.root
while current_node is not None:
if value == current_node.value:
# we found the node, return it
return current_node
elif value < current_node.value:
# the value we are looking for is in the left subtree
current_node = current_node.left
else:
# the value we are looking for is in the right subtree
current_node = current_node.right
# we didn't find the node, return None
return None

def count(self, node):
if node is None:
return 0
else:
return 1 + self.count(node.left) + self.count(node.right)

def find_median(self):
# get the total number of nodes in the tree
total_count = self.count(self.root)
HENCE I USED chatGPT
EducationRe: Author Of Secondary School Physics P.N Okeke Turns 78 by engrAAS: 6:25pm On May 02, 2020
i think Okeke try better than Anyankoha in terms of calculation but in terms of explanation NEW SCHOOL PHYSICS BY ANYANKOHA all the way




by the way HBD sir, much respect
CrimeRe: My Beautiful Experience With The Nigerian Police by engrAAS: 5:54pm On Mar 19, 2020
I think the Nigeria police reform is heading toward a positive direction.




Yes
Nigeria will be great again
God bless me, God bless u
God bless NPF
GOD BLESS NIGERIA
EducationRe: Help A Brother With Ways Of Eradicating Suicide And The Cause In Our Community by engrAAS(op): 10:22am On Jul 29, 2019
Stargurl20:
Youth should b thought by their parents aw to b hopeful. And stop associating a failure with being eternally useless. Like ma lecturer always says... ' what we youth of today lack is hope'
We should b thought to b hopeful n never think failing once means the end of life. Parents should train their children how to be independent n hopeful.
Thanks,
EducationRe: Help A Brother With Ways Of Eradicating Suicide And The Cause In Our Community by engrAAS(op): 10:55am On Jul 23, 2019
What about enlightenment of the public about the danger and other ways of overcoming depression
EducationHelp A Brother With Ways Of Eradicating Suicide And The Cause In Our Community by engrAAS(op):
Please, help with any idea on how we can reduce suicide in our society because suicide is becoming tooo alarming in our society

Please want to write an article on it. To save lives #let work together to save others




#Please don't just view share ur ideas with us
EducationRe: Physicist, Engineers, Mathemagicians, Help A Brother Solve This by engrAAS(op): 10:50pm On May 02, 2019
tbabs10166:
I believe you should get the little breakdown I uploaded. appologies for my hand writing
very grateful sir
EducationRe: Physicist, Engineers, Mathemagicians, Help A Brother Solve This by engrAAS(op): 4:08pm On May 02, 2019
Valleys:
Pls I don't have a calculator And it's been long like 13yrs ago I left maths
I still don't understand it's yet but I will soon go through it sir thanks alot
EducationRe: Physicist, Engineers, Mathemagicians, Help A Brother Solve This by engrAAS(op): 4:02pm On May 02, 2019
BlacSmit:
Send your account number,, . . . . . . Problem solved
please I don't understand what you are trying to pass across
EducationPhysicist, Engineers, Mathemagicians, Help A Brother Solve This by engrAAS(op): 11:20am On May 02, 2019
while following a treasure map, you start at an old oak tree, you first walk 825m directly south, then turn and walk 1.25km at 30 degree west of north, and finally walk 1.00km at 40 degrees north of east, where you find the treasure, a biography of Isaac Newton! (a) to return to the oak tree, in what direction should you head and how far will you walk?use component to solve this problem (b) to see whether your calculations in part A is reasonable, check it with graphical solution drawn roughly to scale



ANS[911m, 8.9 degrees west of south]
EducationRe: Masters In Computer Engineering Or Control Engineering by engrAAS: 5:15pm On Apr 22, 2019
I suggest you go for anything computer or AI because the latest technologies are focused there
EducationRe: Abdulkabir Aliu Scholarship 2017/2018 by engrAAS: 1:30pm On Apr 14, 2019
hello, please I tried to take the CBT test and no questions were displayed, hope no OK problem.
EducationRe: I Need Engineering Mathematics. KA Stroud Pdf Softcopy by engrAAS: 7:52am On Apr 11, 2019
you can get some engineering materials here
http://www.enginemat..com
EducationRe: I Need Engineering Mathematics. KA Stroud Pdf Softcopy by engrAAS: 12:09pm On Apr 06, 2019
captainbangz:
him don send am give you?
Nop
EducationRe: I Need Engineering Mathematics. KA Stroud Pdf Softcopy by engrAAS:
Aguemma:
I have it.
DM on #Agubataemmanuel2019@gmail.com#
bros Abeg send it to me as well nh
EducationRe: How Can I Pass Jamb To Become A Software Engineer by engrAAS: 1:46pm On Feb 22, 2019
READ as if it's only reading that will make you pass and PRAY as if it's only prayer that will make you pass.



Abu Mujaheed
EducationRe: Unilorin Political Science Exam Question That Got Students Sweating by engrAAS: 2:54pm On Feb 17, 2019
50desh:
A 400L lecturer of the department of political science in Unilorin have suprised his students with the least expected question in one of their exam. The course title is Election Process. Questions asked includes; Mention the names of the 77 presidential candidates in the 2019 election; name the 77 political parties contesting in the 2019 election and name the 77 party chairmen in the 2019 election.
No graduating political science student for unilorin this year Niyen haha GOD PERDON US, WE KNOW WE USUALLY OFFEND YOU.
EducationRe: BUK Has Released The Proposed Plan For 2018/19 Registration & Academic Calendar by engrAAS(op): 8:56am On Feb 14, 2019
engrAAS:
Pictures gotten from the school whatsaap group posted earlier by some students.
2nd picture

EducationBUK Has Released The Proposed Plan For 2018/19 Registration & Academic Calendar by engrAAS(op): 8:55am On Feb 14, 2019
Pictures gotten from the school whatsaap group posted earlier by some students.

PoliticsRe: Kwankwaso, Secondus Say It’s All Over For APC As Atiku ‘shuts Down’ Kano by engrAAS: 8:25am On Feb 11, 2019
GreenArrow2:
The only two things that concern me with these pictures are:
1. The money the guy who got the contracts for the red caps made, and
2. The money the sound engineering firm made.

APC/PDP o, all that one na for jonsing people to argue about.
brother, it's like you are thinking what am finking, Cool money hmmmm
EducationABU Zaria Notice On The Resumption Of Academic Activities(picture) by engrAAS(op): 10:52am On Feb 08, 2019
screen shot

EducationRe: If ASUU Calls Off The Strike When Will You Return To School? by engrAAS: 6:38am On Feb 07, 2019
Sportwin:
hope its smiling u meant
thanks bro I will correct it now
EducationRe: If ASUU Calls Off The Strike When Will You Return To School? by engrAAS:
[quote author=Sportwin post=75463723]It's possible I resume same day sef

Buh cotonou gat me[/quote

bro u aren't smiling
EducationRe: ASUU Strike: What Is The Resolution Of The ASUU Chapter In Your School? by engrAAS: 3:21pm On Feb 06, 2019
Success410:
The only public school on session are
Kogi State University
university of Ilorin
Kwara state university
I think federal university of brinin kebbi as well
EducationRe: What Is The Name Of This Leaf Please? by engrAAS: 5:53pm On Feb 03, 2019
ab1x:
Hibiscus leaves


Also called China rose. a woody plant, Hibiscus rosa-sinensis, of the mallow family, having large, showy flowers: the state flower of Hawaii. any of numerous other plants, shrubs, or trees of the genus Hibiscus, characterized by lobate or dentate leaves and usually profusely blooming flowers.
hibiscus � brother

1 2 (of 2 pages)