Skip to content

Pro Programming

Professional way of Programming

  • Home
  • C MCQs
  • C/C++
  • Java
  • Python
  • MySQL
  • Topics
    • Arrays
    • Strings
    • Link Lists
    • Trees
    • Shapes
    • Articles
  • Projects
  • Games

cpp codes

Mobile Numeric Keypad Problem: Solution in C++

Here we will understand the Mobile Numeric Keypad problem, then we will understand the solution and then write a Program in C++ to implement the solution: GIVEN: A mobile numeric keypad as below: PROBLEM: A digit is given, we have to find the number of possible numbers of given digits can be formed, using the … Read more

Categories cpp codes Tags grid, mobile numeric keypad problem Leave a comment

How to count number of non repeating digits in a Range C++

Here we will write a program to count the number of non repeating digits in a given range. Let’s start with understanding the problem. Given: A Range starting from L till R. Problem: Find the count of total numbers such that they do not have any repeated digits. Like 123 has no repeated digits but 121, 122, … Read more

Categories c programming, cpp codes Leave a comment

Maximum points from top left to bottom right of Matrix

Given: Matrix of size MxN, consists of ‘#’, ‘.’ and ‘*’, where: # means blocked path . means walkable path * means points to collect. Problem: To find the maximum points you can grab to reach bottom right of the matrix from top left. Consider you are at the top left of the matrix, you have … Read more

Categories c programming, cpp codes Tags maximum points from top left of matrix to bottom right and return back Leave a comment

Highway Billboard Problem: Dynamic Programming

In this post we will understand the problem of Highway Billboard Problem and then we will implement the solution using Dynamic Programming. Problem: Let’s suppose we got a job to place billboards (advertising hoarding) on a National Highway of length M miles. The possible site for billboards are given by numbers x1 < x2 < ….. < … Read more

Categories c programming, cpp codes, Java, Python Tags highway billboard problem Leave a comment

Find length of the longest sub-sequence in C++

In this post first we are going to understand the problem to find the length of longest sub-sequence of an array and then we will write a C++ program to implement the same. Let’s understand the problem first: Given: An array arr[ ] of N integers. Problem: To find the length of the longest subsequence … Read more

Categories c programming, cpp codes Tags Longest subsequence such that adjacent elements have at least one common digit Leave a comment

Implement K stacks in single Array C++

Here first we are going to understand the problem of how to efficiently implement K Stacks in a single array, then we will discuss a solution and then finally we can implement the same in C++. Implement K Queues in single Array in C++ Problem: Create a data structure kStacks that represents k stacks. Implementation … Read more

Categories c programming, cpp codes Tags How to efficiently implement k Queues in a single array? Leave a comment
Post navigation
Older posts
Page1 Page2 … Page10 Next →
  • Email
  • Facebook
  • Twitter

Recent Posts

  • A simple Zombie War Game in C++
  • Mobile Numeric Keypad Problem: Solution in C++
  • Last Minute Notes: C and C++
  • JavatPoint Offline version Download Free
  • How to count number of non repeating digits in a Range C++
  • C++ Program to check if word exists in Grid or not
  • Top Cryptocurrency list of 2021
  • C Program to Implement Coppersmith Freivald’s Algorithm
  • Gene Manipulation Q & A – Gene Targeting and Transfer in Plants
  • Check if an Array is mirror inverse or not
© 2020 | ProProgramming | About | Contact US | Privacy Policy