Skip to content

Instantly share code, notes, and snippets.

View iamshadmirza's full-sized avatar
👨‍💻
Tap Tap Tap

Shad Mirza iamshadmirza

👨‍💻
Tap Tap Tap
View GitHub Profile
@iamshadmirza
iamshadmirza / binaryQueue.js
Created December 17, 2019 08:48
binaryQueue solution from Cassidy's newsletter
// This week's question:
// Given a positive number N, generate binary numbers between 1 to N
// using a queue-type structure in linear time.
// Example:
// > binaryQueue(10)
// > 1 10 11 100 101 110 111 1000 1001 1010
function binaryQueue(n) {
const queue = [];
@iamshadmirza
iamshadmirza / TNBW-contributors.md
Last active June 15, 2021 06:00
Drop your hashnode username to join "The Next Big Writer" mentorship program.

Hey everyone,

I see you have chosen to level up your technical writing skills. Drop a comment here with your Hashnode username or create an account here if you haven't already.

We will add you as contributors on the "The Next Big Writer" publication and you will be able to see it in dropdown while submitting your draft.
See you on the other side 👋🏼

This gist is associated with the https://thenextbigwriter.tech/ mentorship program.

(function ( ) {
// keyof: This created a literal type where new type will be equal to keyof type
interface Resume {
name: string,
education: string,
skills: Array<string>
}