Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null.
Dijkstra's shortest path algorithm finds the shortest path from the source node to the target node.
This document explains the basic concepts that are essential in IOS Development.
You are given with an unsorted int list and max_int_limit of the list. Sort the int list in time O(n).
Bellman-ford algorithm will find the shortest path to all of the vertices from the source node.
Return the time it takes for all the n nodes to receive the signal. If it is impossible for all the n nodes to receive the signal, return -1.
We will write a function that shuffles the list in-place.
In Computer Science, logarithms play a huge role in analyzing algorithms that only evaluates half of its input.
Given the root of a binary tree, return the zigzag level order traversal of its nodes' values.
Given the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by level).
Return true if the tree has a root-to-leaf path such that adding up all the values along the path equals targetSum.
Problem: Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree.
Given a binary tree, find its minimum depth.
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
You are given an m x n binary matrix grid. An island is a group of 1's connected 4-directionally. Return the maximum area of an island in grid.
Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.
You are given two binary trees root1 and root2. Return the merged tree.