#java
Read more stories on Hashnode
Articles with this tag
Problem statement Given a binary tree, determine if it is height-balanced.(link) Example 1: Input: root = [3,9,20,null,null,15,7] Output:...
Problem The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. (link) Given an...
Problem Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the...
Problem You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their...
Problem You are given the head of a linked list. Delete the middle node, and return theheadof the modified linked list. (link) The middle node of a...
Problem Statement Given the head of a singly linked list, return true if it is a palindrome or falseotherwise. (link) Example 1: Input: head =...