LeetCode 01 : Two Sum
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
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
Given a string s, find the length of the longest substring without repeating characters.
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]).
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.
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
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.
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
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.