ProDeveloperTutorial.com
  • DSA
    • Algorithms and Data Structures Tutorial
    • Crack The Coding Interview (DSA Sheet)
  • Coding Languages
    • C++ Tutorial
    • C language Tutorial
    • Linux Shell Scripting Tutorial
    • GIT Tutorial
    • Linux System Calls Tutorials
    • Shell Script Tutorial
  • System Design Tutorial

ProDeveloperTutorial.com

  • DSA
    • Algorithms and Data Structures Tutorial
    • Crack The Coding Interview (DSA Sheet)
  • Coding Languages
    • C++ Tutorial
    • C language Tutorial
    • Linux Shell Scripting Tutorial
    • GIT Tutorial
    • Linux System Calls Tutorials
    • Shell Script Tutorial
  • System Design Tutorial
ProDeveloperTutorial.com

What are You Looking For?

  • Coding Interview Questions
  • C++ Tutorial
  • DataStructure and Algorithms
  • C Language Tutorial
ProDeveloperTutorial
onDecember 25, 2024

Subsets II in CPP

Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must…
Discover More
ProDeveloperTutorial
onDecember 25, 2024

The gray code is a binary numeral system where two successive values differ in only one bit.

Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must…
Discover More
ProDeveloperTutorial
onDecember 25, 2024

Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.

You should preserve the original relative order of the nodes in each of the two partitions. Example: Input: head =…
Discover More
ProDeveloperTutorial
onDecember 25, 2024

Remove Duplicates from Sorted List solution in CPP

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Example 1:…
Discover More
ProDeveloperTutorial
onDecember 25, 2024

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

(i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]). You are given a target value to search. If found in the array return true, otherwise…
Discover More
ProDeveloperTutorial
onDecember 25, 2024

Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length.

Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. Example 1: Given…
Discover More
ProDeveloperTutorial
onDecember 25, 2024

The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.

Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuration of the…
Discover More
ProDeveloperTutorial
onDecember 25, 2024

Given a 2D board and a word, find if the word exists in the grid.

The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those horizontally or…
Discover More
ProDeveloperTutorial
onDecember 24, 2024

Given a set of distinct integers, nums, return all possible subsets (the power set).

Note: The solution set must not contain duplicate subsets. Example: Input: nums = [1,2,3] Output: [ [3], [1], [2], [1,2,3], [1,3], [2,3],…
Discover More
ProDeveloperTutorial
onDecember 24, 2024

Given two integers n and k, return all possible combinations of k numbers out of 1 … n.

Example: Input: n = 4, k = 2 Output: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ] This problem can be solved in 2 ways. 1. Iterative 2.…
Discover More

Posts pagination

Previous 1 … 53 54 55 … 70 Next
ProDeveloperTutorial.com
Tutorials and Programming Solutions
  • DSA
    • Algorithms and Data Structures Tutorial
    • Crack The Coding Interview (DSA Sheet)
  • Coding Languages
    • C++ Tutorial
    • C language Tutorial
    • Linux Shell Scripting Tutorial
    • GIT Tutorial
    • Linux System Calls Tutorials
    • Shell Script Tutorial
  • System Design Tutorial
© 2024 — ProDeveloperTutorial. All Rights Reserved.