Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

280
Vistas
Detect if a question matches another question with python or js?

I'm trying to find out how I can detect if one question matches another with python or JS. For example detect that the question:

"Does anyone know the MySql password?"

is related to the question

"Does anyone know the MySql password?"

in order to give an automatic answer while limiting the number of false positives.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

`

let str1="Does anyone know the MySql password?"; 
let str2="Does anyone know the MySql password?";

let parsedStr1=str1.toLowerCase().replace(/\s/g,''); 
let parsedStr2=str1.toLowerCase().replace(/\s/g,'');

parsedStr1.localeCompare(parsedStr2);

/* Expected Returns:

 0:  exact match

-1:  string_a < string_b

 1:  string_a > string_b

*/

`

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda