摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(96) 评论(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-22 12:06 bernieloveslife 阅读(94) 评论(0) 推荐(0)
摘要: Given an n ary tree, return the postorder traversal of its nodes' values. For example, given a 3 ary tree: Return its postorder traversal as: [5,6,3,2 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(94) 评论(0) 推荐(0)
摘要: We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would c 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(105) 评论(0) 推荐(0)
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(91) 评论(0) 推荐(0)