原文:[LeetCode] Range Sum Query 2D - Immutable 二维区域和检索 - 不可变

Given a D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner row , col and lower right corner row , col . The above rectangle with the red border is def ...

2015-11-12 13:59 0 10177 推荐指数:

查看详情

308. Range Sum Query 2D - Mutable

题目: Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner ...

Sat Dec 19 19:00:00 CST 2015 0 4824
Immutable不可变)集合

不可变集合,顾名思义就是说集合是不可被修改的。集合的数据项是在创建的时候提供,并且在整个生命周期中都不可改变。 为什么要用immutable对象?immutable对象有以下的优点: 对不可靠的客户代码库来说,它使用安全,可以在未受信任的类库中安全的使用这些对象 线程安全 ...

Sat Sep 05 17:22:00 CST 2015 3 5554
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM