lichao_normal

导航

2016年11月26日 #

Divide Two Integers

摘要: 1 int divide(int dividend, int divisor) { 2 if(divisor==0)return INT_MAX; 3 if(dividend==0)return 0; 4 long long res=0; 5 int flag=1; 6 long long d1=d 阅读全文

posted @ 2016-11-26 22:31 lichao_normal 阅读(164) 评论(0) 推荐(0) 编辑

Remove Duplicates from Sorted Array

摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文

posted @ 2016-11-26 15:16 lichao_normal 阅读(184) 评论(0) 推荐(0) 编辑