Efficiently filling missing values

  • Κατάσταση: Closed
  • Βραβείο: $15
  • Ληφθείσες Συμμετοχές: 1
  • Νικητής: NavyaRenish

Σύνοψη Διαγωνισμού

We developed a very complex software which works mostly on a grid of data in memory.
We need the followig function:

AddDummyValuesWhenMissing(wstring FieldName, vector<vector<wstring>> &data)
{
}

Input:
FieldName - the value in the first row (header) in one of the columns
Data - the double vector we change

Lets say the contents is:

field1,field2,field3
"one", "", "three"
"two", "1", "four"
"five", "2", "Five"
"something", "", ""

The input is "field2"
The function should find that one of the rows has no value in "field2" and then insert a new value, which must be unique and not already exist. Value should be unique.

Function must be ultra fast and we will test it on 100K records.

Please upload the fully working source code including AddDummyValuesWhenMissing() to Google Drive or Dropbox and post a link.

Προτεινόμενες Δεξιότητες

Κορυφαίες καταχωρήσεις από αυτόν τον διαγωνισμό

Προβολή Περισσότερων Συμμετοχών

Δημόσιος Πίνακας Διευκρινίσεων

  • NYCyber
    Κάτοχος Διαγωνισμού
    • Πριν από 2 χρόνια

    please submit your source code or a link to a google docs file with it

    • Πριν από 2 χρόνια

Πώς να ξεκινήσετε με τους διαγωνισμούς

  • Δημοσιεύστε τον διαγωνισμό σας

    Αναρτήστε τον διαγωνισμό σας Γρήγορα και εύκολα

  • Λάβε ένα σωρό συμμετοχές

    Λάβετε Πολλές Συμμετοχές Από όλο τον κόσμο

  • Βραβεύστε την καλύτερη καταχώρηση

    Βραβεύστε την καλύτερη καταχώρηση Κατεβάστε τα αρχεία - Εύκολα!

Αναρτήστε ένα Διαγωνισμό Τώρα ή Ελάτε Μαζί Μας Σήμερα!