Given a string, find the length of the longest substring without repeating characters.E...
Given a string, find the length of the longest substring without repeating characters.E...
You are given two linked lists representing two non-negative numbers. The digits are st...
Given an array of integers, return indices of the two numbers such that they add up to ...
Given two arrays, write a function to compute their intersection.Example:Given nums1 = ...
Given two arrays, write a function to compute their intersection.Example:Given nums1 = ...
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < ...
Given a positive integer num, write a function which returns True if num is a perfect s...
Calculate the sum of two integers a and b, but you are not allowed to use the operator ...
We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You ...
Design a data structure that supports all following operations in average O(1) time. in...
Given a singly linked list, return a random node's value from the linked list. Each nod...
Given a string, find the first non-repeating character in it and return it's index. If ...
Given two strings s and t which consist of only lowercase letters.String t is generated...
Given a string s and a string t, check if s is subsequence of t.You may assume that the...
Given an array of integers A and let n to be its length.Assume Bk to be an array obtain...
Given a positive integer n and you can do operations as follow: What is the minimum num...
Find the sum of all left leaves in a given binary tree.对给定的二叉树,返回其左叶子的和。Example: There ...
Given a string which consists of lowercase or uppercase letters, find the length of the...
Write a program that outputs the string representation of numbers from 1 to n.But for m...
Given a non-empty array of integers, return the third maximum number in this array. If ...