|
Phones › Re: How Facebook Bug Secretly Recorded Iphone Users by ANTONINEUTRON(m): 6:10pm On Nov 15, 2019 |
World of gathering data... |
Programming › Re: Regular Programming Challenges With The Odd Money To Win by ANTONINEUTRON(m): 3:05pm On Nov 14, 2019*. Modified: 9:59pm On Nov 14, 2019 |
Advance Data structure is one thing local man will be learning next semester, and the way he'll focus on it..... At this point. I throw in the towel. But I achieved something at least. That last problem is a no go area for me. As for question.4, It's not clear to me. 1. Using java. public class binaryProblem { public static int getBase10Value(String num){ int len = num.length()-1; String b = Character.toString(num.charAt(len)); Integer base = Integer.parseInt(b); String newNum = num.replace(b,"" ) ; Integer numberInItsBase = Integer.parseInt(newNum,base); String numberInBase10 = Integer.toString(numberInItsBase,10); return Integer.parseInt(numberInBase10); }
public static void main(String[] args) { String a = "102"; String b = "108"; String c = "1016"; int x = getBase10Value(a); int y = getBase10Value(b); int z = getBase10Value(c); System.out.print(x+y+z); } }
Output: 47 Note: The program takes the last number 1016 as base 6. 2. option a is the answer. Because Unix timestamp starts counting at 1st, January, 1979 3.Using java import java.util.ArrayList; public class pointBetweenOddNum{ public static int getNextNumber(int currentIndex, ArrayList<Integer> arr){ int nextNum = 0; if((currentIndex+1) != arr.size()){ nextNum = arr.get(currentIndex+1); } return nextNum; } public static ArrayList<Integer> getList(){ ArrayList<Integer> arr = new ArrayList<Integer>(); int num; for(int i=1; i<1000; i++){ if(i<100 && i>9){ arr.add(i/10); arr.add(i%10); }else if(i>99 && i<1000){ arr.add(i/100); int j = i%100; arr.add(j/10); arr.add(j%10); }else{ arr.add(i); } } return arr; } public static void main(String[] args) { int count=0; ArrayList<Integer> arr = getList(); for(int i=0; i<arr.size(); i++){ int next = getNextNumber(i,arr); int current = arr.get(i); int remainder = (current+next)%2; if(remainder==0){ count++; } } System.out.println(count); } }
Output: 1440 4. Not clear. Because all 1000th numbers have 1 in their binary representation. 5.Using java public class test4 { public static int getLength(int num){ int len = 0; for(int i=1; num>2; i++){ int remainder = num%2; if(remainder==0){ num /= 2; }else{ num=(num*3)+1; } len=i; } return len; } public static void main(String[] args) { int maxNum,maxNumLength; int limit = 421337; maxNum = 0; maxNumLength = 0; for(int i=10; i<limit; i++){ int len = getLength(i); if(len>maxNumLength){ maxNum = i; } } System.out.println(maxNum); } }
Output: 421336 6. There's time for everything in this life. Please after this competition ends explain how this problem can be solve. Thank you. |
Webmasters › Re: How The Recent Google Core Updates Will Affect Websites And SEO by ANTONINEUTRON(m): 8:37am On Nov 14, 2019 |
styless: someone should help me build a blog like DNB Stories, please.
My budget is medium let's talk. send me an email @ antonineutron@gmail.com. I have something for you |
Programming › Re: Regular Programming Challenges With The Odd Money To Win by ANTONINEUTRON(m): 10:25pm On Nov 13, 2019 |
That last problem though.... |
|
Programming › Re: Programmers: At What Age Did You Start Programming? by ANTONINEUTRON(m): 7:08am On Nov 13, 2019 |
Started at a relatively young age <17
started with the usual HTML,css,basic JavaScript, and PHP. During which I created a web application which enable CBT test to be written online but couldn't deploy it.
But currently am loving Java and developing Android apps.
What is limiting me is no laptop. Everything I have done is via my phone. |
Programming › Re: Regular Programming Challenges With The Odd Money To Win by ANTONINEUTRON(m): 6:59am On Nov 13, 2019 |
wen are u posting the first challenge |
Education › Re: Seplat Joint Venture 2019/2020 Scholarship Application Is Ongoing by ANTONINEUTRON(m): 10:27pm On Nov 12, 2019 |
Zerhraddeenx: This is to inform the 2019 SEPLAT AND SNEPCO shortlisted applicants that, a whatsapp group has just been created for easy and convenient information sharing. If you're interested you can click on the following link or whatsapp 09036603644 to join the group. pls it will be better ifu post dey link so that we can click it |
Education › Re: 2019/2020 Seplat Undergraduate Scholarship Shortlisted Candidates by ANTONINEUTRON(m): 9:07am On Nov 11, 2019 |
who has taken the test??
Did you see your result after the test?? |
Education › Re: Sex For Grades: Kogi Federal Varsity Investigates 12 Officials by ANTONINEUTRON(m): 7:47am On Nov 11, 2019 |
ojonugwaisaac01: THIS IS NOT TRUE as it conveys a fallacious details
FUL is my great Citadel of learning Things of such has no place in FUL It took me of a great delusion even to abscond to the fact that the event throbs mostly in my own department You have no idea of things that happen in Nigeria universities... Sex for grade is real. most of those girls that are lackadaisical with their education are the ones that are involve. They can greet lecturers in order for them to be noticed. |
Education › Re: Top 10 Undergraduate Scholarship For Nigerian Students by ANTONINEUTRON(m): 7:42am On Nov 11, 2019 |
Stephaustin: Who told you that ExxonMobil still offers scholarship in Nigeria? They organized a scholarship program this year.... |
Education › Re: Seplat Joint Venture 2019/2020 Scholarship Application Is Ongoing by ANTONINEUTRON(m): 3:29pm On Nov 08, 2019 |
giwish: 30 questions, 45 minutes
mostly gmat questions snepco or seplat |
Programming › Re: I Need Help!!!! by ANTONINEUTRON(m): 4:56pm On Nov 07, 2019 |
|
Education › Re: What Was Your First GPA &now Your Current CGPA by ANTONINEUTRON(m): 12:44pm On Nov 07, 2019 |
started with 4.65.
currently on 4.52 |
Education › Re: Just Now! Snepco/nnpc Shortlisted Successful Candidates by ANTONINEUTRON(m): 12:42pm On Nov 07, 2019*. Modified: 8:21pm On Nov 07, 2019 |
;. |
Education › Re: Non Issuance Of Transcript By Olabisi Onabanjo University (OOU) by ANTONINEUTRON(m): 10:32am On Nov 06, 2019 |
poor record management.
maybe your paper don lost.... |
Education › Re: Operating System Books To Download by ANTONINEUTRON(m): 10:29am On Nov 06, 2019 |
3. Operating System Concepts by Avi Silberschatz
The book I am using. |
|
|
Celebrities › Re: Shan George Blasts Femi Branch: "May Your Children Beg Unclad On The Street" by ANTONINEUTRON(m): 3:50pm On Sep 18, 2019 |
The spinal cord surgery caused it. A head surgery need to be done. |
Education › Re: Apply Guinesss Nigeria Undergraduate Schorlarship 2019 by ANTONINEUTRON(m): 10:44am On Sep 12, 2019 |
no computer science?? |
Programming › JAVA Experts: Creating A Window App That Read Fingerprint by ANTONINEUTRON(op): 8:59pm On Sep 06, 2019 |
How can I go about creating a window base app that can read a user fingerprint(through a fingerprint scanner) and save it.
Ideas and reference to helpful materials will be appreciated. |
Programming › Re: Elvis Chidera, Village boy now a Global Programmer by ANTONINEUTRON(m): 8:49pm On Sep 06, 2019 |
cool |
Education › Re: Minimum Requirements Of Becoming A Professor In Nigeria by ANTONINEUTRON(m): 1:13pm On Aug 27, 2019 |
PatrickOkunima: In the past, it was possible to become a prof without PhD. Assessment was based on other criteria, like journey publications, etc. But today, to even become a senior lecturer in a Nigerian University, you must have a PhD. Some schools even insist on PhD for Lecturer 1. so without teaching for at least 3 years in each of the four lecturing positions you can't be a professor?? for instance if the individual is employed as lecturer 1 |
Programming › Re: Is It Possible To Create New Programming Language? by ANTONINEUTRON(m): 10:14pm On Aug 14, 2019 |
yes
but bring new things to d table |
Education › Re: Can UNN Admit A 15 Years Old Candidate? by ANTONINEUTRON(m): 3:32pm On Aug 14, 2019 |
Most federal schools and some states with high application s don't admit under 16. but with connections and amazing luck she might make it |
Programming › Re: Java Has Been Over Throned By Python by ANTONINEUTRON(m): 8:08pm On Aug 13, 2019 |
U re just trying to advertise a product.
All programmers should know dat your problem solving skills is d ultimate |
Celebrities › Re: DJ Arafat Dies In Motorbike Accident (Photos) by ANTONINEUTRON(m): 7:41pm On Aug 12, 2019 |
Fragile life Arafatii orobo dat year WITH JMARTINS |
|
|
Education › Re: Zombie Dance! See Climate Change Message Sent To Donald Trump By COOU Students by ANTONINEUTRON(m): 9:47am On Aug 04, 2019 |
|