Skip to content

Instantly share code, notes, and snippets.

View gohilumesh's full-sized avatar

Umesh Gohil gohilumesh

  • Los Angeles
View GitHub Profile
class Node{
constructor(data) {
this.data = data;
this.next = null;
}
}
class LL {
constructor() {
this.head = null;
function quickSortIterative(arr) {
let sorted = [],
stacked =[arr];
while (stacked.length) {
let temp = stacked.pop(),
tempLen = temp.length;
if (tempLen === 1) {
sorted.push(temp[0]);
@gohilumesh
gohilumesh / index.html
Last active February 15, 2017 03:12
Star Widget
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
</head>
<body>
class Node {
constructor(value = null, left = null, right = null) {
this.value = value;
this.right = right;
this.left = left;
}
toString() {
return JSON.stringify(this);
}
@gohilumesh
gohilumesh / slider.css
Created January 28, 2017 23:59
CSS Slider using Animation
.slider {
overflow: hidden;
width: 700px;
height: 350px;
}
.slider figure img {
width: 20%;
float: left;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>