#codingnewbies
Read more stories on Hashnode
Articles with this tag
N Queens · Q23: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. Given an integer...
Combination Sum · Q20:Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates...
Majority element II · Q6:)Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. Example: Input: nums = [3,2,3] Output:...
Majority element · Q5:)Given an array nums of size n, return the majority element.The majority element is the element that appears more than ⌊n / 2⌋...