HOME
ABOUT

Problem Solving Examples

LeetCode 01 : Two Sum

GoProgrammingHub
GoProgrammingHub
May 03, 2021

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

Read more →

LeetCode 02 : Add Two Numbers

GoProgrammingHub
GoProgrammingHub
May 03, 2021

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list

LeetCode 03 : Longest Substring Without Repeating Characters

GoProgrammingHub
GoProgrammingHub
May 03, 2021

Given a string s, find the length of the longest substring without repeating characters.

LeetCode 04 : Container With Most Water

GoProgrammingHub
GoProgrammingHub
May 03, 2021

You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).

LeetCode 05 : Remove Duplicates from Sorted Array

GoProgrammingHub
GoProgrammingHub
May 03, 2021

Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same.

LeetCode 06 : Maximum Subarray

GoProgrammingHub
GoProgrammingHub
May 03, 2021

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

LeetCode 07 : Contains Duplicate

GoProgrammingHub
GoProgrammingHub
May 03, 2021

Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.

Codechef 01 : Problem Code: AGELIMIT

GoProgrammingHub
GoProgrammingHub
May 03, 2021

Chef wants to appear in a competitive exam. To take the exam, there are following requirements, Minimum age limit is X and Age should be strictly less than Y

Codechef 02 : Problem Code: BURGERS

GoProgrammingHub
GoProgrammingHub
May 03, 2021

Chef is fond of burgers and decided to make as many burgers as possible. Chef has A patties and B buns. To make 1 burger, Chef needs 1 patty and 1 bun. Find the maximum number of burgers that Chef can make.