Problem Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
Problem Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
Problem Given two strings s and t which consist of only lowercase letters.String t is g...
Problem Given a string, find the first non-repeating character in it and return it's in...
Problem Given an arbitrary ransom note string and another string containing letters fro...
Problem We are playing the Guess Game. The game is as follows:I pick a number from 1 to...
Problem Calculate the sum of two integers a and b, but you are not allowed to use the o...
Problem Given a positive integer num, write a function which returns True if num is a p...
Problem Given two arrays, write a function to compute their intersection.Note: Each ele...
Problem Given two arrays, write a function to compute their intersection.Note: Each ele...
Problem Write a function that takes a string as input and reverse only the vowels of a ...
Problem Write a function that takes a string as input and returns the string reversed. ...
Problem Given an integer (signed 32 bits), write a function to check whether it is a po...
Problem Given an integer, write a function to determine if it is a power of three.Follo...
Problem Given an integer array nums, find the sum of the elements between indices i and...
Problem You are playing the following Nim Game with your friend: There is a heap of sto...
Problem Given a pattern and a string str, find if str follows the same pattern.Here fol...
Problem You are a product manager and currently leading a team to develop a new product...
Problem Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find t...
Problem Write a program to check whether a given number is an ugly number.Ugly numbers ...
Problem Given a non-negative integer num, repeatedly add all its digits until the resul...