15 câu hỏi JavaScript

15 câu hỏi cơ bản về JavaScript
  • phuongnq
    phuongnq

    Thu Dec 31 2020 12:45:47 GMT+0900 (Japan Standard Time)

Markdown Visualization

This feature allows user creating flexible interactive visualization with ease.

Btree

1:(3)
2:(1,2)|3:(4,5,6,8)

1:(3)
2:(1,2)|3:(4,5,6,7,8)

1:(3,6)
2:(1,2)|3:(4,5)|4:(7,8)

Binary Tree

1:(4)
2:(2)|3:(5)
4:(1)|5:(3)

RedBlack Tree

1:(4):black
2:(2):black|3:(5):green
4:(1):black|5:(3):red

1:(4):black
2:(2):black|3:(5):red
4:(1):black|5:(3):red|6:(10):black|7:(15):black

Bars

1,7,6,3,4,5,2

1,7,3,6,4,2,5

TODO

  • Array, Linkedlist
  • Graph
  • Geometry Math

Tabs {.tabset}

Tab One

RedBlackTree

1:(4):black
2:(2):black|3:(5):green
4:(1):black|5:(3):red

1:(4):black
2:(2):black|3:(5):red
4:(1):black|5:(3):red|6:(10):black|7:(15):black

Tab Two

BinaryTree

var x = 1;
let y = 2;
const z = x + y;

{-}

Code Highlight

// SelectionSort sorts array of items
function selectionSort(a) {
  const n = a.length
  for (let i = 0; i < n-1; i++) {
    for (let j = i + 1; j < n; j++) {
      if (a[j] < a[i]) {
        let tmp = a[i]
        a[i] = a[j]
        a[j] = tmp
      }
    }
  }
}

Debugable CodeEditor

// SelectionSort sorts array of items
function selectionSort(a) {
  const n = a.length
  for (let i = 0; i < n-1; i++) {
    for (let j = i + 1; j < n; j++) {
      if (a[j] < a[i]) {
        let tmp = a[i]
        a[i] = a[j]
        a[j] = tmp
      }
    }
  }

  return a
}

selectionSort([3,2,1,4,5])

Slideshow with Reveal.js

Code slideshow animation, focus and press f to enter fullscreen mode

Blockly Programming

Programmable drag and drop blocks

Comments

© Codetube.vn. 2020. Privacy Policy

Created with love for the environment. By designers and developers who love to work together toward good purposes!