ProDeveloperTutorial.com
  • DSA
    • Algorithms and Data Structures Tutorial
    • Crack The Coding Interview (DSA Sheet)
    • ProDeveloperTutorial – Selected Competitive Programming Questions for Interview
    • System Design Tutorial
  • Coding Languages
    • C++ Tutorial
    • C language Tutorial
    • Linux Shell Scripting Tutorial
    • GIT Tutorial
    • Linux System Calls Tutorials
  • Protocols
    • 4G
    • 5G

ProDeveloperTutorial.com

  • DSA
    • Algorithms and Data Structures Tutorial
    • Crack The Coding Interview (DSA Sheet)
    • ProDeveloperTutorial – Selected Competitive Programming Questions for Interview
    • System Design Tutorial
  • Coding Languages
    • C++ Tutorial
    • C language Tutorial
    • Linux Shell Scripting Tutorial
    • GIT Tutorial
    • Linux System Calls Tutorials
  • Protocols
    • 4G
    • 5G
ProDeveloperTutorial.com

What are You Looking For?

  • Coding Interview Questions
  • C++ Tutorial
  • 5G NR
  • DataStructure and Algorithms
ProDeveloperTutorial
onDecember 24, 2024

Given an array n integers and an integer key, are there four elements a, b, c, and d in the array such that a + b + c + d = key? Find all unique quadruplets in the array which gives the sum of key.

Note: The solution set must not contain duplicate quadruplets. Example: Given array nums = [1, 0, -1, 0, -2, 2], and target = 0. A solution…
Discover More
ProDeveloperTutorial
onDecember 24, 2024

Given an array of n integers and an integer “key”, find three integers in the array such that the sum is closest to key.

Input: [-1, 2, 1, -4] Key = 1 Output: The sum that is closest to the target is 2. (-1 + 2 + 1 = 2) This problem is also known as three sum…
Discover More
ProDeveloperTutorial
onDecember 24, 2024

Given an array, find 3 elements such that [a + b + c] = 0. Find all the 3 unique elements.

This question can also be called as “three sum”. Input = [-1, 0, 1, 2, -1, -4], Output: [ [-1, 0, 1], [-1, -1, 2] ] This problem can be solved…
Discover More
ProDeveloperTutorial
onDecember 24, 2024

Given an array of non repeating numbers and a key, find all the unique combinations in that array, where the sum of those combination is equal to the key.

Input: Array = [2,3,6,7], key = 7, Output: [ [7], [2,2,3] ] Example 2: Input: candidates = [2,3,5], target = 8, A solution set is: […
Discover More
ProDeveloperTutorial
onDecember 24, 2024

Find the Container with Most Water explanation with diagram and solution

Problem description: Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines…
Discover More
ProDeveloperTutorial
onDecember 24, 2024

Given an input string (s) and a pattern (p), implement regular expression matching with support for ‘.’ and ‘*’.

Note: ‘.’ Matches any single character. ‘*’ Matches zero or more of the preceding element. Example 1: Input: Pattern:…
Discover More
ProDeveloperTutorial
onDecember 23, 2024

Longest Palindromic Substring In C++

Given a string, find the longest palindromic string in that array. A palindromic string will give the same string when read reverse. Example:…
Discover More
ProDeveloperTutorial
onDecember 23, 2024

Given a string, and number of rows, write the string in zigzag pattern.

Problem Explanation: Given a string “prodevelopertutorial” and number of rows is 3. Write the string in a zigzag pattern. Example: Input:…
Discover More
ProDeveloperTutorial
onDecember 23, 2024

Given an integer value, convert it into roman number.

Problem Explanation: Roman numbers are represented by below characters: I 1 V 5 X 10 L 50 C 100 D 500 M 1000 IV 4 IX 9 XL 40 XC 100 CD 400 CM…
Discover More
ProDeveloperTutorial
onDecember 23, 2024

Given an array, find all the repeated elements in C language.

Problem Description: Given a positive integer array, find all the elements that have been repeated and display them. Example: Input: {1, 3, 2,…
Discover More

Posts pagination

Previous 1 … 116 117 118 … 129 Next
ProDeveloperTutorial.com
Tutorials and Programming Solutions
  • DSA
    • Algorithms and Data Structures Tutorial
    • Crack The Coding Interview (DSA Sheet)
    • ProDeveloperTutorial – Selected Competitive Programming Questions for Interview
    • System Design Tutorial
  • Coding Languages
    • C++ Tutorial
    • C language Tutorial
    • Linux Shell Scripting Tutorial
    • GIT Tutorial
    • Linux System Calls Tutorials
  • Protocols
    • 4G
    • 5G
© 2024 — ProDeveloperTutorial. All Rights Reserved.