该文被密码保护。 阅读全文
摘要:
lc 283 Move Zeroes [283 Move Zeroes][1] Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of 阅读全文
摘要:
Appreciation to our TA, +7, who designed this task. Client.cpp include include include "Factory.hpp" include "Product.hpp" int main() { UIFactory ui = 阅读全文
摘要:
lc 242 Valid Anagram [242 Valid Anagram][1] Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagra 阅读全文
摘要:
lc 231 Power of Two [231 Power of Two][1] Given an integer, write a function to determine if it is a power of two. analysation Easy problem. solution 阅读全文
摘要:
lc 191 Number of 1 Bits [191 Number of 1 Bits][1] Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also know 阅读全文
摘要:
lc 263 Ugly Number [lc 263 Ugly Number][1] Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose 阅读全文
摘要:
lc 258 Add Digits [lc 258 Add Digits][1] Given a non negative integer num, repeatedly add all its digits until the result has only one digit. For exam 阅读全文
摘要:
lc 292 Nim Game [292 Nim Game][1] You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of yo 阅读全文