Longest Tree Sum Path From Root to Leaf
Given a binary tree root, return the sum of the longest path from the root to a leaf node. If there are two equally long paths, return the larger sum.
Given a binary tree root, return the sum of the longest path from the root to a leaf node. If there are two equally long paths, return the larger sum.
Given two lowercase alphabet strings a and b, return the length of the longest anagram subsequence.
You are given a list of integers nums where each integer occurs exactly three times except for one which occurs once. Return the lone integer.
Given a list of integers nums, return the sum of a non-empty contiguous sublist with the largest sum.
You are given a two-dimensional integer matrix of 1s and 0s. A 1 represents land and 0 represents water, so an island is a group of 1s that are neighboring w...
Given a list of strings words, group all anagrams together and return the size of the largest grouping.
Given a string s of lowercase alphabet characters, and an integer k, return the minimum number of changes needed in the string (one change involves changing ...
Given two linked lists l0 and l1, return the two linked lists interleaved, starting with l0. If there are leftover nodes in a linked list, they should be add...
Given a list of integers nums, return the number of sublists where the first element and the last element have the same value.
Given a string s containing round, curly, and square open and closing brackets, return whether the brackets are balanced.
Given a two-dimensional square matrix, rotate in-place it 90 degrees counter-clockwise.
Implement an iterator of a list of integers nums where