Skip to content

Instantly share code, notes, and snippets.

Avatar
:electron:
Rewinding the wires from scratch!

consious_coder varaprasadh

:electron:
Rewinding the wires from scratch!
View GitHub Profile
View TreeNextPointer.java
class Solution {
public Node connect(Node root) {
if(root == null) return null;
Queue<Node> queue = new LinkedList();
queue.add(root);
while(queue.size()>0){
int size = queue.size();
@varaprasadh
varaprasadh / isLucky.java
Last active Jul 30, 2021
islucky - Code Signal
View isLucky.java
/*
Ticket numbers usually consist of an even number of digits. A ticket number is considered lucky if the sum of the first half of the digits is equal to the sum of the second half.
Given a ticket number n, determine if it's lucky or not.
Example
For n = 1230, the output should be
isLucky(n) = true;
For n = 239017, the output should be
@varaprasadh
varaprasadh / setup.md
Created Jun 11, 2021 — forked from akella/setup.md
My Setup
View setup.md
View newtab.tsx
import React, { ReactElement } from 'react'
import { render } from 'react-dom';
interface Props {
}
function NewTab({}: Props): ReactElement {
return (
<div>
View manifest.json
{
"version": "3.0.0",
"manifest_version": 2,
"name": "cat space",
"description": "world of cats!",
"icons": {
"128": "./images/icon.png",
"48": "./images/icon.png",
"16": "./images/icon.png"
},
View gist:ac97a64eb909455844a49ade3651929c
{
"name": "cats",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-outside-click-handler": "^1.3.0",
"styled-components": "^5.3.0"
View webpack for chrome extension
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const copyWebpackPlugin = require('copy-webpack-plugin')
const { resolve } = require('path');
const plugins = [
new HtmlWebpackPlugin({
template: './public/new-tab.raw.html',
filename:'new-tab.html',
View sublime_licence_key
—– BEGIN LICENSE —–
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2