How to simulate a grid (minesweeper problem) as a data type in the best way? Is it better to use the vector as a two-dimensional entity. The reason for the vector is related to border validation capabilities. Is my assumption correct?
Thank:)
Since the mesh size (I suppose!) Is fixed, the vector gives you a slight edge over the array. Therefore, I recommend going with a 2D array.
, , . 0 , . .
, vest , , , STL (, ..). Boost multi_array , , . , ++, .
, , , std:: map, std::. , , , . O (n), O (log n), O (mp) ( m p - ) O (1) .
Source: https://habr.com/ru/post/1782133/More articles:Как рассчитать разницу во времени между двумя событиями в Java? - javaLink ZONE_NORMAL to the kernel / user pages - armPHP CLI, Windows 7 CMD и CLS/FF должны ладить. (Очистить Win7 CMD с PHP от CLI) - windowsRuby on Rails: is there a standard helper for minimalist implementation of create and update actions? - ruby-on-railsObjective-C valueforKey - objective-cWhat is "tty" on FreeBSD? - unixHow to find child parent through has_one association in Rails3? - ruby-on-railshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1782136/tracking-visitor-ipclicks-in-php&usg=ALkJrhjTA5yIaLJWmY12A-UvQPX93SAyuQHow to make a good benchmarking of complex functions? - cwpf & visual studio - wpfAll Articles