Skip to content

Latest commit

 

History

History

1477

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

var title = # [${$('[data-cy=question-title]').textContent} (${$('[diff]').textContent})](${location.href})\n\n; var question = ${$('.question-content__JfgR').children[0].innerHTML}\n\n;

var companyClass = '.company-tag-wrapper__1rBy a'; var companyElems = $$(companyClass); var companies = companyElems.length? **Companies**: \n${companyElems.map(x => ${$('.btn-content__lOBM', x).textContent}).join(', ')}\n\n : '';

var topicClass = '.topic-tag__1jni'; var topicElems = $$(topicClass); var topics = topicElems.length ?**Related Topics**: \n${topicElems.map(x => ${x.textContent}).join(', ')}\n\n : '';

var similarQuestionClass = '.question__25Pw'; var similarQuestionTitleClass = '.title__1kvt'; var similarQuestionDifficultyClass = '.difficulty__ES5S'; var similarQuestonElems = $$(similarQuestionClass); var similarQuestions = similarQuestonElems.length ? **Similar Questions**:\n${similarQuestonElems.map(x => { let link = $(similarQuestionTitleClass, x); return * ${link.textContent} (${$(similarQuestionDifficultyClass,x).textContent}) }).join('\n')}\n\n : '' ;

copy( ${title} + ${question} + ${companies} + ${topics} + ${similarQuestions} + ## Solution 1.\n\n\``cpp\n\n````)