unique-values Questions

4

Solved

I am trying to write a function in JavaScript to get the unique values ​​of an array, but my code does not work correctly. I know there are other better and simpler ways to do it, but I don't under...
Purim asked 13/10, 2019 at 2:11

4

Solved

I have this form of a spreadsheet: A B C D abc abc abc 1 def ghi jkl 1 mno pqr stu 3 vwx yza bcd 4 mno pqr stu 5 mno pqr stu 5 vwx yza bcd 5 mno pqr stu 1 Where the first 3 columns are just dat...
Retort asked 28/6, 2013 at 19:33

8

Solved

I have done a lot of looking around on the overflow, and on google, but none of the results works for my specific case. I have a placeholder array called $holder, values as follows: Array ( [0...
Visually asked 2/5, 2012 at 6:1

7

What is the most efficient way to store a list of strings ignoring any duplicates? I was thinking a dictionary may be best inserting strings by writing dict[str] = false; and enumerating through th...
Klondike asked 28/5, 2009 at 1:13

4

I have 2 text files with data. I am reading these files with BufferReader and putting the data of one column per file in a List<String>. I have duplicated data in each one, but I need to hav...
Gehenna asked 1/10, 2014 at 22:56

5

Solved

I have an array like this: $a = array( 0 => array('type' => 'bar', 'image' => 'a.jpg'), 1 => array('type' => 'food', 'image' => 'b.jpg'), 2 => array('type' => 'bar', 'im...
Feud asked 29/8, 2014 at 4:27

2

Solved

we use VS 2008 there is a big enum, which is populated by many developers this enum has a type __int64 (a Microsoft extension), and I want to make compiler complain about non unique values in enu...
Enciso asked 29/6, 2012 at 14:13

4

Solved

I've got a data frame like this one 1 1 1 K 1 K K 2 1 2 K 1 K K 3 8 3 K 1 K K 4 8 2 K 1 K K 1 1 1 K 1 K K 2 1 2 K 1 K K I want to remove all the columns with the same value, i.e K, so my result wi...
Lanfri asked 5/12, 2011 at 16:26

5

Solved

Given a string of identifiers separated by :, is it possible to construct a regular expression to extract the unique identifiers into another string, also separated by :? How is it possible to ach...
Osteoclast asked 22/7, 2010 at 14:16
1

© 2022 - 2024 — McMap. All rights reserved.