LeetCode 49. Group Anagrams
Description https://leetcode.com/problems/group-anagrams/ Given an array of strings, group anagrams together. Example: Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], Output: […
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/group-anagrams/ Given an array of strings, group anagrams together. Example: Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], Output: […
Description https://leetcode.com/problems/shuffle-an-array/ Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3.…
Description https://leetcode.com/problems/happy-number/ Write an algorithm to determine if a number is “happy”. A happy number is a number defined by…
LeetCode is running the 30-Day LeetCoding Challenge to solve a frequently-asked interview problem. Week 1: April 1st–April 7th Single Number Happy Number…
Description https://leetcode.com/problems/house-robber/ You are a professional robber planning to rob houses along a street. Each house has a certain amount…
Description https://leetcode.com/problems/merge-sorted-array/ You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively.…
Description https://leetcode.com/problems/validate-binary-search-tree/ Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as…
Description https://leetcode.com/problems/delete-node-in-a-linked-list/ Write a function to delete a node in a singly-linked list. You will not be given access to the head of the list, instead…
Description https://leetcode.com/problems/palindrome-linked-list/ Given a linked list, determine if it has a cycle in it. To represent a cycle in the…
Description https://leetcode.com/problems/palindrome-linked-list/ Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2 Output: false Example…