2020年4月6日

摘要: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non zero elements. Example: Input: 阅读全文
posted @ 2020-04-06 10:47 codingEskimo 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu 阅读全文
posted @ 2020-04-06 10:22 codingEskimo 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive intege 阅读全文
posted @ 2020-04-06 06:42 codingEskimo 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 从今天开始努力刷题,用这个帖子来记录刷题的进度。也方便自己的寻找。 题号 题目 复习 1 Two Sum Y 2 Add Two Numbers Y 3 Longest Substring Without Repeating Characters Y 4 Median of Two Sorted A 阅读全文
posted @ 2020-04-06 05:42 codingEskimo 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti 阅读全文
posted @ 2020-04-06 05:35 codingEskimo 阅读(110) 评论(0) 推荐(0) 编辑

导航