摘要:
1.1概述 Java与C++有一堵由内存分配和垃圾回收技术所构成的“高墙” 1.2 运行时数据区域 1.2.1 程序计数器 程序计数器是一小块的内存空间,它可以看作是当前线程执行字节码的行号指示器。通过改变这个计数器可以去选取下一条指令 在任何一个确定的时刻,一个处理器都只会执行一条线程中的指令。每 阅读全文
摘要:
Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected e 阅读全文
摘要:
Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n 阅读全文
摘要:
Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environment which cou 阅读全文
摘要:
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文