Print All Possible Words from Phone Digits in C++

sudhir sharma
Updated on 17-Jan-2020 11:23:51

884 Views

In this problem, we are given a number and we have to print all words that can be formed by pressing those words in an old fashioned mobile keyboard.We are quite familiar with the QWERTY keyboard style that we use today. But before the invention of QWERTY keypad phones were fitted with keypads with 12 buttons and each button contains words and numbers both. Like they word 6 on the keypad will contain words “MNO” which will be typed by clicking one, twice or thrice the keys.The keypad looked like this −12ABC3DEF4GHI5JKL6MNO7PQRS8TUV9WXYZ*0#In these keywords also all words are present and ... Read More

Smart Ways to Save a Web Page Forever

Samual Sam
Updated on 17-Jan-2020 11:19:46

1K+ Views

Netizens while surfing numerous websites on the internet, find a few pages to be more significant when compared to the rest. As web pages could disappear or change with time, hence many prefer to save those significant web pages forever. Do you wish to save webpages forever? Then simply follow a few smart ways and save web pages forever. Few of them, has been listed below.If you desire to save news articles, then the recommended choice would be – Instapaper or pocket website. One can also use the browser extensions, email, apps or bookmarklets, but the hurdle is, they do ... Read More

Siri Hints: Apple Delivers New Products

Samual Sam
Updated on 17-Jan-2020 11:17:41

172 Views

APPLE WATCHApple has come up with new colors for its Apple Watch series by introducing “Rose-gold”, a gold-tinted rose color. The watch bands are much better this time. Apple has gone with a full-on partnership with Hermes, a luxury fashion brand and the result shows in the gorgeous looks.IPAD PROThe most impressive thing about the iPad Pro is its raw processing speed. The iPad Pro has a 64-bit A9X processor that easily outperforms the iPad Air 2, with 1.6 times the processing speed and twice the graphics processing. Apple claims it has a “desktop processing speed” that can outperform almost ... Read More

Performance Monitoring with Monitorix on Ubuntu 16.04

Sharon Christine
Updated on 17-Jan-2020 11:17:36

245 Views

Monitorix is a free, open source, lightweight system monitoring tool designed to monitor as many services and system resources as possible. It has been created to be used under the production of Linux/UNIX servers but due to its simplicity and small size it can be used on embedded devices as well. This article explains about “How to install Minitorix on Ubuntu”.Adding the Monitorix RepositoryTo add the Monitorix Repository, open /etc/apt/sources.list file as shown below –$ sudo nano /etc/apt/sources.listThe sample output should be like this –# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted # See ... Read More

Print All Prime Factors and Their Powers in C++

sudhir sharma
Updated on 17-Jan-2020 11:16:29

723 Views

In this problem, we are given a number N, and we have to find all unique prime factors and their powers that divide the number.Let’s take an example to understand the topic −Input: 55 Output: 5 power 1 11 power 1Explanation −55 is divisible by 5 and 11.To solve this problem, an easy approach to solving the problem is to find prime factors of N. And then find power of the prime number that divides the number N and print it.AlgorithmEfficient ApproachStep 1: Find an array s[N+1]. s[i] = prime factor of i dividing N. Step 2: Find all powers ... Read More

Top 10 Online Forums

karthikeya Boyini
Updated on 17-Jan-2020 11:14:53

57K+ Views

An online forum is a great place to discuss any particular topic with the like-minded people. These forums are internet-based group communities where you can start a discussion, or get an answer of your query or even search for new business prospects. These forums allow you to register with them and after that you can look into the answers to various questions written by others or you yourself can answer the questions. Almost every website these days has a small forum integrated in their own websites.An online forum, or a message board, is a public place where you can drop ... Read More

Print All Prime Numbers Less Than or Equal to N in C++

sudhir sharma
Updated on 17-Jan-2020 11:13:55

1K+ Views

In this problem, we are given a number N and we have to print all prime numbers less than or equal to N.Let’s take an example to understand the topic better −Input: 10 Output: 2 3 5 7A prime number is a number that can be divided by only one and the number itself. Example: 2, 3.A simple approach is to iterate from 2 to N and divide the number by it. If the number is not divisible, then it’s a prime number. Print the number. Do this till the number is equal to N. This approach is not that ... Read More

Print All Prime Quadruplets of a Number Less Than It in C++

sudhir sharma
Updated on 17-Jan-2020 11:12:58

194 Views

In this problem, we are given a positive integer N, and we have to print all prime quadruplet less than or equal to n.Prime quadruplets are the set of four prime numbers calculated as {p, p+2, p+6, p+8}. Example − 5 7 11 13.Let’s take an example to understand the problem −Input: N = 15 Output: 5 7 11 13.To solve this problem, a simple approach is to generate all quadruplets of prime number p and check if all p, p+2, p+6, p+8 are prime numbers. This solution is easy but is more complex for the compiler.Another efficient approach is ... Read More

Simple Ways to Earn Money Online

Samual Sam
Updated on 17-Jan-2020 11:11:38

279 Views

Earning money online seems to be an attractive prospect for someone who can spare those extra hours to earn extra bucks. But most of the times, users feel disappointed as there is no definite way that can guide them to some reliable ways and means to start. All the ads out there are not always genuine. And yes, if you are too desperate to make some quick money, you are bound to be disappointed.Here are some points that can be taken into consideration before venturing into the online money making business. Though this seems to be a lucrative opportunity to ... Read More

Print All Proth Primes Up to n in C++

sudhir sharma
Updated on 17-Jan-2020 11:09:28

189 Views

In this problem, we are given an integer N and we have to print all proth prime numbers less than or equal to N.Proth Prime NumberA proth prime number is a positive integer whose value can be represented as n = k* 2n + 1. where k is an odd positive integer and n is a positive integer and both satisfy the 2n > k.Examples − 3, 5, 13…..Let’s take an example to understand the topic better −Input: N = 23 Output: 3, 5, 13, 17.For this, we will find all the prime numbers less than N(for this we will ... Read More

Advertisements