×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Sudhir sharma
has Published
806
Answers
Find Maximum number possible by doing at-most K swaps in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:37:55
In this problem, we are given two integer values n and k. Our task is to find the Maximum number possible by doing at-most K swaps. Problem description: Here, we need to calculate the number which is maximum and created after swapping at-most k digits of the number.Let’s take an example to ...
Read More
Find maximum level sum in Binary Tree in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:37:06
In this problem, we are given a binary Tree with positive and negative values. Our task is to Find maximum level sum in Binary Tree. Problem Description: We have a binary tree, we will find the sum of all levels in the binary tree and then return the maximum of them.Let’s take ...
Read More
Prime Factorization using Sieve O(log n) for multiple queries in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:35:09
In this problem, we need to create a program to calculate Prime Factorization using Sieve O(log n) for multiple queries. As the general method takes O(sqrt(n) ) time which will increase the time required to a huge extent from multiple queries.Let’s recap first, Prime factorization of a number includes ONLY the ...
Read More
Principles of Risk Management and Paradigm in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:31:54
Risk Management is the approach that is used to manage all available resources and make the best use of the resources available in the system.The project manager will analyse risks from all categories and there might be some risks in the working of the project in the runtime environment.Principles of Risk ManagementThere ...
Read More
Print a number as string of 'A' and 'B' in lexicographic order in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:29:26
In this problem, we are given a number N. Our task is to create a program to Print a number as string of ’A’ and ‘B’ in lexicographic order. Representation of all numbers as string of ‘A’ and ‘B’ is1 = A 2 = B 3 = AA 4 = AB 5 = BA 6 = ...
Read More
Print all longest common sub-sequences in lexicographical order in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:28:20
In this problem, we are given two string str1 and str2. Our task is to create a program to Print all longest common subsequences in lexicographical order. Let’s take an example to understand the problem, Input: str1 = “gfare” , str2 = “rfare”Output: fareSolution ApproachIn this problem, we will find all possible longest ...
Read More
Sum of the series 1 + (1+3) + (1+3+5) + (1+3+5+7) + ...... + (1+3+5+7+...+(2n-1)) in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:25:24
In this problem, we are given a number n. Our task is to create a program to find the sum of series 1 + (1+3) + (1+3+5) + (1+3+5+7) + …… + (1+3+5+7+…+(2n-1)). Let’s take an example to understand the problem, Input: n = 5Output: 55So, according to the question ...
Read More
Sum over Subsets - Dynamic Programming in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:22:45
In this problem, we are given an array arr[] of size 2n. Our task is to create a program to find the sum over subset using dynamic programming to solve it.We need to calculate function, F(x) = Σ Ai such that x&i == i for all x. i.e. i is ...
Read More
Sum of XOR of sum of all pairs in an array in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 27-Jan-2021 09:21:58
In this problem, we are given an array arr[] of size n. Our task is to create a program to find the sum of XOR of sum of all pairs in an array.Let’s see an example to understand the problem, Input: arr[5, 7, 9]Output: 22Explanation: (5+5) ^ (5+7) ^ (5+9) ^ (7+5) ^ ...
Read More
Print all possible ways to convert one string into another string in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 25-Jan-2021 09:57:10
In this problem, we are given two strings str1 and str2. Our task is to create a program to Print all possible ways to convert one string into another string. Problem Description: Here, we need to find all possible ways using which we can convert str1 to str2. While converting, we can perform ...
Read More
1
2
3
4
5
6
7
...
81
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout