leetcode

20211210 Programing
[leetcode] 26. Remove Duplicates from Sorted Array
Given the array integer which is sorted by ascending. It may have duplicated numbers so what you need to do is to remove them and return the...

20211208 Programing
[leetcode] 14. Longest Common Prefix
Given string array and find the longest common prefix from the array....

20200414 Programing
[leetcode] 1408. String Matching in an Array
Given an array that contains some words. You should return all the string that is part of other strings. The order does not matter....

20200410 Programing
[leetcode] Backspace String Compare  30Day LeetCoding Challenge Day 9
Two string that might contain "#" are given. "#" means backspace, so the last letter before "#" is supposed to remove from the string. Afte...

20200409 Programing
[leetcode] 198. House Robber
An array that contains the only integer is given as an argument. And sum up the element of value and find the sum of the maximum. However, y...

20200409 Programing
[leetcode] Middle of the Linked List  30Day LeetCoding Challenge Day 8
A node that made by Linked List is given. You need to return the middle of the node. If the length of node is odd, return second middle node...

20200404 Programing
[leetcode] 189. Rotate Array
One array that contains only integer, and one integer named "k" are given. you should rotate the array by the index of k and return it....

20200404 Programing
[leetcode] Maximum Subarray  30Day LeetCoding Challenge Day 3
The array that contains integer is given. The integer might be positive and negative as well. You need to find the the sub array that has th...

20200403 Programing
[leetcode] Happy Number  30Day LeetCoding Challenge Day 2
A positive number is given. Each digit should multiply by itself and calculate the sum of them, which is called "happy number". And then, th...

20200403 Programing
[leetcode] 235. Lowest Common Ancestor of a Binary Search Tree
Binary Search Tree is given. BST is a tree structure that the value of every parent's nodes is greater than the left child node and less tha...