Nithin Senthil Kumar

Projects Blog About

    Add sudo user and setup ssh config

    new user useradd wheel ssh config passwd

    Setting up a user with root privileges on a linux machine which can only be accessed through a jumpbox. Also setting up passwordless ssh by modifying the ssh config file on your workstation.

    20 August 2020

    https on .me custom domain - github pages

    https nc namecheap me github pages

    If you've acquired a .me domain from namecheap.com and configured it point to your github pages, making the website use https will require some additional steps.

    16 August 2020

    Validate a Binary Search Tree

    Trees Leetcode BST

    Different methods to verify the validity of a binary search tree. This post assumes a basic understanding of what a binary tree is and goes on to explain how inorder traversal and recursion can be used to validate BSTs.

    16 May 2020

    Finding Prime Numbers

    Prime Math Leetcode Sieve Eratosthenes

    This post contains an expanding record of problems related to finding or counting prime numbers.

    10 May 2020

    Pattern Matching - KMP and more

    strings pattern matching knuth morris pratt KMP

    This post documents important algorithms such as KMP that are used to solve string pattern matching problems.

    08 May 2020

    Bit arithmetic - Cheat Sheet and Programs

    bit arithmetic bit xor operators bitwise Leetcode

    This is a cheatsheet for common bitarithmetic problems on Leetcode. This sheet will continuously be updated whenever I find amusing new bit arithmetic problems.

    24 April 2020

    Tree Traversal - Inorder, Preorder and Postorder

    Tree traversal inorder preorder postorder

    A one stop reference to find the recursive and iterative traversal algorithms for different tree traversal approaches.

    20 April 2020

    Graph Search Algorithms

    DFS Depth graph search

    DFS is one of the most easiest and fun graph search algorithms to learn and implement. It has wide ranging applications and can prove very useful in competitive programming, but how would you implement it?

    18 April 2020

    Rest API An Introduction

    REST API Web SOAP

    We've heard the word API and REST thrown around a lot. But what exactly are they? I decided to find out and document it for my reference.

    17 April 2020

    Deleting duplicates in std::vector

    stl vector delete duplicates

    This post details different methods - from the least efficient to the most efficient - to delete duplicate elements from a `std::vector`.

    16 April 2020

    Multicast UDP Sockets with examples

    Socket Programming sockets

    Multicast sockets allow us to initiate communication with multiple listeners on the network, selectively. In order to explore this feature, I experimented with a simple sender/receiver multicast program.

    15 April 2020

    String Rotation and Reversal - Different Methods

    strings string manipulation rotation reversal

    The very basics of string manipulation problems are documented in this post. How to reverse or rotate a string? This post elaborates on it.

    14 April 2020

    Prefix Sum - The general approach to a contiguous subarray problem.

    prefix sum subarray contiguous Leetcode

    Prefix sum problems are some of the most commonly asked Leetcode problems. It's pretty much basic math, but is not exactly as intutive as you would think, if you don't know the approach.

    13 April 2020

    Generating entropy to create gpg keys

    entropy gpg spack

    Generating entropy for gpg keys can sometimes cause massive wait times if your system is idle. I faced this problem and had to figure out a way to invoke false workloads to increase system utilization. Here are my methods following a quick web search.

    12 April 2020

    Learn React.js in 5 minutes

    External Post React JavaScript Web Development

    A quick introduction to the popular JavaScript library.

    15 February 2019

    How to undo your git failure?

    External Post Git

    Using `git reflog` and `git reset` to save your code.

    06 February 2019

    What the heck is a Callback?

    External Post JavaScript Nodejs Web Development

    Learn and understand the basics of callbacks in just 6 minutes with easy examples.

    01 December 2018

    Clean Coding

    External Post Software Development Clean Code

    These four “clean code” tips will dramatically improve your engineering team’s productivity

    15 June 2017
    Contact Me