#problems
Read more stories on Hashnode
Articles with this tag
Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example...
Constraints: The number of nodes in the tree is in the range [0, 100]. -100 <= Node.val <= 100 class Solution { public List<Integer>...
class Solution { public void rotate(int[][] matrix) { for (int col = 0; col < matrix[0].length; col++){ for (int row = 0; row...
Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*' where: '?' Matches any single...
Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: Input: head = [1,2,3,4,5], n =...
You are given a string s and an array of strings words of the same length. Return all starting indices of substring(s) in s that is a concatenation of...