Top-Interview-Questions--Leetcode icon indicating copy to clipboard operation
Top-Interview-Questions--Leetcode copied to clipboard

These are codes for Top Interview Questions from Leetcode.

Results 108 Top-Interview-Questions--Leetcode issues
Sort by recently updated
recently updated
newest added

fixes #18 c++ solution to the leetcode 3Sum problem: Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and...

The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two end nodes. The diagram below shows two trees each with...

Given a linked list of size N. The task is to reverse every k nodes (where k is an input to the function) in the linked list. If the number...

Given an array A of N elements. Find the majority element in the array. A majority element in an array A of size N is an element that appears more...

Creating a class ‘product’ with data members pcode, pname and price. Create 3 objects of the class and find the product having the lowest price.

I have written the code for trapping rain water problem.