Articles in this series

Easy approaches · Formula f(n)=g(n)+h(n) tc O(N+h) sc O(n+h) import heapq def astar(start, goal, graph, heuristic): """ A* algorithm...

#Medium · The pair sum of a pair (a,b) is equal to a + b. The maximum pair sum is the largest pair sum in a list of pairs. For example, if we have pairs...

#Medium · You are given an array of positive integers arr. Perform some operations (possibly none) on arr so that it satisfies these conditions: The...

#hard · You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted...

Daily leetcode Nov 5 - 2023 · Given an integer array arr of distinct integers and an integer k. A game will be played between the first two elements of...

Your company built an in-house calendar tool called HiCal. You want to add a feature to see the times in a day when everyone is available. · To do this,...