645. Set Mismatch

You have a set of integers s, which originally contains all the numbers from 1 to n. Unfortunately, due to some error, one of the numbers in s got duplicated to another number in the set, which results in repetition of one number and loss of another number.

575. Distribute Candies

Alice has n candies, where the ith candy is of type candyType[i]. Alice noticed that she started to gain weight, so she visited a doctor.

26. Remove Duplicates from Sorted Array

Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length.

19. Remove Nth Node From End of List

Given the head of a linked list, remove the nth node from the end of the list and return its head.

14. Longest Common Prefix

Write a function to find the longest common prefix string amongst an array of strings.

sql exercise-leetcode

SQL exercise from leetcode Database category at level of Easy and Medium

Linked List

Singly-Linked List

Palindrome Number

9. Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.

Reverse Integer

7. Given a 32-bit signed integer, reverse digits of an integer.

Two Sum

1. Given an array of integers, return indices of the two numbers such that they add up to a specific target.

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×