Fork me on GitHub
摘要: We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.) A word is uncommo 阅读全文
posted @ 2018-10-07 23:54 hellowOOOrld 阅读(247) 评论(0) 推荐(0)
摘要: Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middl 阅读全文
posted @ 2018-10-07 22:02 hellowOOOrld 阅读(151) 评论(0) 推荐(0)
摘要: Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may re 阅读全文
posted @ 2018-10-07 16:50 hellowOOOrld 阅读(291) 评论(0) 推荐(0)
摘要: Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positi 阅读全文
posted @ 2018-10-07 13:45 hellowOOOrld 阅读(426) 评论(0) 推荐(0)
摘要: Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some array B 阅读全文
posted @ 2018-10-07 12:42 hellowOOOrld 阅读(160) 评论(0) 推荐(0)
摘要: Given an array A, partition it into two (contiguous) subarrays left and right so that: Every element in left is less than or equal to every element in 阅读全文
posted @ 2018-10-07 00:15 hellowOOOrld 阅读(155) 评论(0) 推荐(0)