Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

ToanTran toantd90

🎯
Focusing
  • Rakuten, Inc.
  • Tokyo, Japan
Block or report user

Report or block toantd90

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mineSweeper.js
/**
* @param {character[][]} board
* @param {number[]} click
* @return {character[][]}
*/
var updateBoard = function(board, click) {
const clickL = click[0], clickR = click[1];
if (board[clickL][clickR] === 'M') {
board[clickL][clickR] = 'X';
return board;
View isSubsequence.js
/**
* @param {string} s
* @param {string} t
* @return {boolean}
*/
var isSubsequence = function(s, t) {
const len = s.length;
if (len === 0) return true;
let sIndex = 0;
View romanToInt.js
/**
* @param {string} s
* @return {number}
*/
const romanToInt = function(s) {
const map = {
'I': 1,
'V': 5,
'X': 10,
'L': 50,
You can’t perform that action at this time.