Power of Three Given an integer, write a function to determine if it is a power of three. Follow up:Could you do it without using any loop / recursion
分类:
编程语言 时间:
2016-02-04 11:36:53
阅读次数:
164
首先是如何sort一个只有0和1的数组,要求inplace. follow up是告诉一个range,如何在O(N)时间内sort好 两个pointer可解 1 package Sorting; 2 import java.util.*; 3 4 public class InplaceSortin
分类:
其他好文 时间:
2016-02-04 01:53:27
阅读次数:
331
一、yum 简介 yum,是Yellow dog Updater, Modified 的简称,是杜克大学为了提高RPM 软件包安装性而开发的一种软件包管理器。起初是由yellow dog 这一发行版的开发者Terra Soft 研发,用python 写成,那时还叫做yup(yellow dog up
分类:
其他好文 时间:
2016-02-03 12:48:33
阅读次数:
487
Pick-up sticks Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 11537 Accepted: 4337 Description Stan has n sticks of various length. He thr
分类:
其他好文 时间:
2016-02-03 11:45:40
阅读次数:
135
https://leetcode.com/problems/two-sum/ Given an array of integers, find two numbers such that they add up to a specific target number. The function tw
分类:
其他好文 时间:
2016-02-03 01:52:17
阅读次数:
232
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n
分类:
其他好文 时间:
2016-02-02 18:55:41
阅读次数:
123
why:沟通what/when:每天(定时,10点),站立(10-15分钟),会议(分享会议,注意是分享,不是汇报)who:团队成员、主持人where:公司how to do:产品团队+测试团队,主持人采用轮值制,负责记录问题说四个事情:昨天做了什么、有什么困难/好的想法、今天计划做什么、能否按预期
分类:
其他好文 时间:
2016-02-02 16:35:14
阅读次数:
138
翻译给定一个单链表,确定它是否是回文的。跟进:
你可以在O(n)时间和O(1)空间下完成它吗?原文Given a singly linked list, determine if it is a palindrome.Follow up:
Could you do it in O(n) time and O(1) space?进阶bool judge(ListNode *head, ListNode...
分类:
其他好文 时间:
2016-02-02 15:13:49
阅读次数:
115
git报错如下: fatal: 'origen' does not appear to be a git repositoryfatal: The remote end hung up unexpectedly开始以为是权限的问题,然后就更改了所有的config,可是仍然不行,后来通过设置orige
分类:
其他好文 时间:
2016-02-02 01:11:05
阅读次数:
267