上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: Valid Anagram Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return true 阅读全文
posted @ 2016-05-10 19:11 Juntaran 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Power of Two Given an integer, write a function to determine if it is a power of two. 阅读全文
posted @ 2016-05-10 19:10 Juntaran 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Excel Sheet Column Number Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding colu 阅读全文
posted @ 2016-05-10 19:09 Juntaran 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at lea 阅读全文
posted @ 2016-05-10 19:09 Juntaran 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You ma 阅读全文
posted @ 2016-05-10 19:08 Juntaran 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Maximum Product Subarray Find the contiguous subarray within an array (containing at least one number)which has the largest product. For example, give 阅读全文
posted @ 2016-04-29 16:36 Juntaran 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Product of Array Except Self Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all 阅读全文
posted @ 2016-04-29 03:39 Juntaran 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Trapping Rain Water Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to 阅读全文
posted @ 2016-04-29 03:38 Juntaran 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Container With Most Water Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are dra 阅读全文
posted @ 2016-04-27 02:19 Juntaran 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 调试时gcc -g -Wall -o Hello Hello.c gdb Hello -tui -g: 生成调试信息 -Wall: 编译器警告信息 -W: 警告信息 在调用GDB时,命令行指定-tui,或在非TUI模式时使用Ctrl+X+A。 TUI模式:上半部分源码,下半部分输入GDB命令 bre 阅读全文
posted @ 2016-04-26 15:05 Juntaran 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 下一页