LogicDcoder's Posts
Nairaland Forum › LogicDcoder's Profile › LogicDcoder's Posts
. |
You’re lucky sha, had it been the my caught you. |
. |
Mtcheeew.... This doesn't look real. One jobless shit will be designing all this poo to get useless attention! |
While in junior secondary school I helped some friends with answers sha during exams, but D I don't knw I was damaging me (They all ganged up against me when I had issues with my academics). I promised me that I will never make that mistake again now that I'm in university. |
. |
I celebrate U bro!!! Fire On!!! |
Lemme celebrate this kids ooo... One day una go hear say I don break records too. Their brain na FIRE!!! |
Chukwuemeka Emmanuel Okeke is a young man called in the Prophetic Office and gifted with the gift of healings, word of knowledge, word of wisdom, prophecy and teaching grace. ceoministryng Chukwuemeka Emmanuel Okeke is from a small town called NIBO, in Anambra State, Nigeria. From the family of Chief Raphael N. Okeke. He has three other brothers. Prophet Chukwuemeka Emmanuel Okeke – CEOMinistryng Chukwuemeka Emmanuel Okeke first realized the calling of God upon his life through a book writing by Benny Hinn (Welcome Holy Spirit and Good Morning Holy Spirit) at the age of 18. Although because of the lack guidance and teachers of the word of God around him, he dived into the Entertainment Industry by building a social dating network called FRIENDITE which lead him into studying COMPUTER SCIENCE and into the social media world. His company by name FRIENDITE GLOBAL LIMITED gained massive boost and was named as Nigeria’s largest dating site with over 60,000 users in just few months after lunch. Although he later shut down the site after 5 years to answer the call of God upon his life in 2017. The death of his mother in 2018 pushed him to building a deeper relationship with God, as his mum was the one person that strongly supported him moving into the ministry and guided him into the things of God. Prophet Chukwuemeka Emmanuel Okeke has been mentored an imparted by the likes of Apostle Steve Chibueze, Rev. Dr. Umar Ukpai, Evangelist GodsPower, Apostle Arome Osayi, Apostle Tochukwu Okonkwo, Passion Java etc. Join Us Our Telegram Channel: https:///prophetemmanuelokeke Website: https://ceoministryng.com/
|
Week 2 -> Bonus Problem: Honorable Mentions: SUPREMOTM iAmChidiebere 404Dev Excallibur
|
iAmChidiebere:Nice one boss. ![]() |
iAmChidiebere:I can't wait ooo |
iAmChidiebere:Kudos boss! |
SUPREMOTM:I really learnt something here kudos boss! |
Question 1 and 3 Solved Observation: Only even numbers can be perfect! SUPREMOTM 404Dev iAmChidiebere mention others please!
|
[Week 2 Questions] 1: In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6 has divisors 1, 2 and 3 (excluding itself), and 1 + 2 + 3 = 6, so 6 is a perfect number. Write a function | isPerfectNumber( ) | that checks if a number is a perfect number or not return True if it's a perfect number and False if it's not. https://en.wikipedia.org/wiki/Perfect_number 2: Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. (A proper divisor of a number is a positive factor of that number other than the number itself. For example, the proper divisors of 6 are 1, 2, and 3.) A pair of amicable numbers constitutes an aliquot sequence of period 2. It is unknown if there are infinitely many pairs of amicable numbers. Simple Example : (220,284) 220 is divisible by {1,2,4,5,10,11,20,22,44,55,110 } <- Sum = 284 and 284 is divisible by -> 1,2,4,71,142 and the Sum of that is. Yes right you probably expected it 220. Write a function (AmicableNumbers(int startValue, int StopValue) ) that finds all the amicable numbers in the range Start-value -> Stop-value and also time the function inother to know the time it took to find the pairs of numbers! https://en.wikipedia.org/wiki/Amicable_numbers 3: Spice up Number 1 question by finding the Odd, Even and Prime perfect numbers in a custom range example: 1 -> 1000, 1000 -> 3000. What do you observe? Honorable Mentions: SUPREMOTM iAmChidiebere 404Dev GOOD LUCK! |
Alert! Next set of problems will be posted either tonight or tomorrow! I really want to use this opportunity to thank SUPREMOTM , iAmChidiebere , 404Dev and logicDcoder for their modest contributions! You Guys Are The Best! |
Excallibur:Great! |
404Dev:Hope you tested your code with different arrays |
Join This Thread To Solve More Complex Algorithmic Problems [url]https://https-www-nairaland-com.0.freebasics.com/6388476/nairaland-weekly-competitive-programming-competiton?iorg_service_id_internal=1646953538912597%3BAfrH0o9khtmhpHKa#98535658[/url] |
Second Problem. It's quite easy all you have to do is convert, extract and then sum. cc: lahp 404Dev Grandlord
|
lahp:Three per week |
Karlebolu:Help the thread by solving a problem |
Lol this man seff |
Grandlord:You don't need to know any of this when solving this kind of problem here in nairaland. CP sites like Topcoder, CodeSignal , Hackerrank etc requires the knowledge of time complexity. Bro just study each problem and try and solve 'em.(Here you don't have any time or memory limit). I got it from CodeSignal |
tensazangetsu20:Where you dey go?... Relax and learn |
Problem 1 Solution: PL used: Java The approach was quite easy. Pseudo Code [1] Iterate the array and multiply the adjacent elements and then compare the product with the variable containing the max product. [2]If the product of the adjacent element is greater than that of the variable containing the max product then assign the value of the product of the adjacent element to the variable containing the max product.
|
WEEK 1: Well will start from the easy ones:
|
Good Morning NL! This thread is meant for programmers [noob] that want to sharpen their problem solving skills using any programming language. The OP of the thread will be posting two/three algorithmic problems here every week. READ ME: Anybody can contribute his/her own solution but make sure to provide the pseudo code. You can use any programming language of your choice. To submit your solution screenshot your IDE and post the resulting image here(A well commented code don't need a pseudo code). Scroll Down To See Week 2 Questions. Thread Official Languages: English/Pidgin English NB: Try and solve the problems first before consulting Mr Stackoverflow. Ogah Seun, Mukina2 and lalasticlala let's give this thread a chance *smiles* Thanks Okeke Enoch Chibuzo |
Programmers make use of a branch of mathematics known as discrete math. You don't have to be guru at math to learn how to program. It also depends on the level you're operating on. |