- 博客(2)
- 资源 (3)
- 收藏
- 关注
转载 Leetcode 503,Add two numbers without using arithmetic operators
int add(int x, int y) { // Iterate till there is no carry while (y != 0) { // carry now contains common set bits of x and y int carry = x & y; //
2016-11-12 10:26:35 293
转载 Leetcode 504,How to replace Space with %20
private static char[] replaceSpaceInString(char[] str, int length) { int spaceCounter = 0; //First lets calculate number of spaces for (int i = 0; i < length; i++) {
2016-11-12 10:07:14 304
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人