Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,771 members, 7,813,557 topics. Date: Tuesday, 30 April 2024 at 01:51 PM

Join This Thread If You Want To Master Algorithms And Data Structures - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Join This Thread If You Want To Master Algorithms And Data Structures (1882 Views)

We Need Algorithms And Data Structure Section In Nairaland! / Learn The Fundamentals Of Algorithms And Data Structures. / Top 20 Websites To Learn Coding With Java, Python, SQL, Algorithms, And Git For (2) (3) (4)

(1) (Reply) (Go Down)

Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 10:30pm On Aug 03, 2020
Join This Thread If You Want To Master Algorithms And Data Structures

I know that we have competent programmers, I know that Nigerians are smart.
Let's not waste our intelligence on scamming white women, let's use it to
build technologies and eventually make money out of them.
Let's start posting algorithmic problems, I need everyone to post any question here hard
or easy for solution. Of course, we may not be able to solve all
problems but we can do our best. Post your problems here...

RULE:

Since Nairaland does not provide us with internal IDE for code implementation,
we can use our preferred IDE like Eclipse, IntelliJ IDEA, Visual Studio IDE, Visual Studio Code, PyCharm, NetBeans etc
after writing the code in your preferred IDE, take a screenshot of it and share it here and the outputs. Please I don't
need plain text on Nairaland, I need a screenshot, it is better and more helpful.

Here is the format:

Question:
Write a program that converts a decimal number to binary one.
example 5 --> 101, 75 --> 1001011

Solution:
There might be many ways of solving this, I can only think of two ways to solve.

1. Applying repeated division by 2 and thereafter return the remainders.
2. Using bitwise operations.

I will code it using the second method, here is the screenshot of the algorithm and some outputs.

2 Likes

Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 10:31pm On Aug 03, 2020
Solution and output screenshots

1 Like

Re: Join This Thread If You Want To Master Algorithms And Data Structures by Regex: 2:39am On Aug 04, 2020
Following!
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 6:57pm On Aug 04, 2020
Question

Write a program that converts a binary number to a decimal one.
Example 101 --> 5, 1001011 -->75
Re: Join This Thread If You Want To Master Algorithms And Data Structures by Jas80: 11:20pm On Aug 05, 2020
progeek37:
Solution and output screenshots


Sorry, but What is wrong with using integer.toBinaryString method
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 7:23am On Aug 18, 2020
When playing games where you have to roll two dice, it is nice to know the odds of each roll. For instance, the odds of rolling a 12 are about 3%, and the odds of rolling a 7 are about 17%. You can compute these mathematically, but if you don’t know the math, you can write a program to do it. To do this, your program should simulate rolling two dice about 10,000 times and compute and print out the percentage of rolls that come out to be 2, 3, 4, ..., 12.
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 7:32am On Aug 18, 2020
Jas80:



Sorry, but What is wrong with using integer.toBinaryString method

Nothing is wrong with it but the code has already been written by Java creators. The purpose of this thread is to help you learn how to write those codes yourself.
Re: Join This Thread If You Want To Master Algorithms And Data Structures by Jas80: 10:57am On Aug 18, 2020
progeek37:


Nothing is wrong with it but the code has already been written by Java creators. The purpose of this thread is to help you learn how to write those codes yourself.

Noted
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 7:45am On Aug 25, 2020
Start your journey in Java programming today. Subscribe to my Zoom Tutorial. We have, console-based , GUI-based and Android projects at the end of the tutorial.
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 4:50pm On Oct 30, 2020
The class is still open to the general public. You can subscribe today by sending me a WhatsApp message. Check my Nairaland signature
Re: Join This Thread If You Want To Master Algorithms And Data Structures by Deicide: 9:56pm On Oct 31, 2020
Are you on leetcode?

1 Like

Re: Join This Thread If You Want To Master Algorithms And Data Structures by syluck(m): 7:47am On Nov 01, 2020
Following....

Secondly, I'm new to programming and I want to learn a lot.

Lastly, Nairaland bots keeps banning me if I upload any pictures here. I don't know why
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 11:58pm On Nov 05, 2020
syluck:
Following....

Secondly, I'm new to programming and I want to learn a lot.

Lastly, Nairaland bots keeps banning me if I upload any pictures here. I don't know why
Yes, that is a problem. I have similar challenge. If you have solid knowledge in data structures and algorithms you can join my coding WhatsApp group or if you are new you can subscribe to my Zoom tutorial.
Re: Join This Thread If You Want To Master Algorithms And Data Structures by Plaouse(m): 7:05pm On Nov 10, 2020
Following...

I'm new to programming though.
Re: Join This Thread If You Want To Master Algorithms And Data Structures by syluck(m): 5:35am On Nov 11, 2020
progeek37:

Yes, that is a problem. I have similar challenge. If you have solid knowledge in data structures and algorithms you can join my coding WhatsApp group or if you are new you can subscribe to my Zoom tutorial.

Sorry, what's your WhatsApp group?
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 1:31pm On Nov 11, 2020
syluck:


Sorry, what's your WhatsApp group?
Send me a WhatsApp message
Re: Join This Thread If You Want To Master Algorithms And Data Structures by TechCapon(m): 1:35pm On Jan 26, 2021
progeek37:

Send me a WhatsApp message
your number?
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 9:30am On Feb 18, 2021
To subscribe to my tutorial send me a WhatsApp message 08135683431
Re: Join This Thread If You Want To Master Algorithms And Data Structures by progeek37(m): 5:08pm On Sep 02, 2022
Message me on WhatsApp if you want to subscribe to my tutorial class on programming and algorithms and data structures: 08135683431

(1) (Reply)

Is PYTHON Better Than PHP In Web Development? / Create A Virus In Less Than 60seconds / 5 Best Programming Language For Artificial Intelligence In 2020

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 22
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.