Replace all spaces in a string with %20
Replace all spaces in a string with '%20' (three characters). Do this in place and assume you have enough space in array
Technical essays, architectural deep-dives, and practical guides at the intersection of code and design.
Page 13 of 28
Replace all spaces in a string with '%20' (three characters). Do this in place and assume you have enough space in array
Implement an algorithm to determine if a string has all the characters as unique.
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
Given two strings s and t , write a function to determine if t is an anagram of s.
Given a string, find the first non-repeating character in it and return its index. If it doesn't exist, return -1.
Write a function that reverses a string. The input string is given as an array of characters char[].
You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise).
Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated.
Given a non-empty array of digits representing a non-negative integer, increment one to the integer.
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
Given two arrays, write a function to compute their intersection.
Given a non-empty array of integers, every element appears twice except for one. Find that single one.