摘要:
Problem Statement Let's say you have a binary string such as the following: 011100011 One way to encrypt this string is to add to each digit the sum o 阅读全文
摘要:
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its inde 阅读全文
摘要:
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 题解:二进制字符串相加 public String addBinary(String 阅读全文
摘要:
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F 阅读全文
摘要:
Majority Element Total Accepted: 58500 Total Submissions: 163658My Submissions Question Solution Majority Element Question Solution Given an array of 阅读全文
摘要:
Limits Constraints Examples This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of 阅读全文