Home
Priyanshu Tiwari
Cancel

Sorting | Codemonk | Hackerearth

Sorting is a process of arranging items in ascending or descending order. This process can be implemented via many different algorithms. You will be learning about various types sorting algorithms....

C++ | Ladder 5 | a2oj

Problem 1-10 1 Queue at the School During the break the schoolchildren, boys and girls, formed a queue of n people in the canteen. Initially the children stood in the order they entered the cante...

Codechef Contests 2022

Febtruary CodeChef Starters 24 Badminton Serves Chef is playing badminton today. The service rules of this singles game of badminton are as follows: The player who starts the game serves fro...

Introductory Problems | CSES

Weird Algorithm Consider an algorithm that takes as input a positive integer n. If n is even, the algorithm divides it by two, and if n is odd, the algorithm multiplies it by three and adds one...

Arrays & Strings | Codemonk | Hackerearth

An array is a sequential collection of variables of same data type. It stores data elements in a continuous memory location. A string is a sequence of characters. Monk and Rotation Monk loves to ...

Striver 180 | takeUforward

Day 1 | Arrays Problem 1 Find the duplicate in an array of N+1 integers. Leetcode Worst Just apply mergesort Time Complexity: $ O(nlogn) $ Auxiliary Space: $ O(n) $ Better Count the oc...

30 Days of Code | Hackerrank

Day 00 Hello World Problem Statement CPP #include <iostream> int main() { string input_string; getline(cin, input_string); cout << "Hello, World." << input_stri...

String | 450 DSA | Love Babbar

Problem 1: Reverse a string Write a function that reverses a string. The input string is given as an array of characters s. Leetcode Worst/ Better Loop through the string from the back and s...

Sorting | 450 DSA | Love Babbar

Day 1 Problem 1: Reverse a string Write a function that reverses a string. The input string is given as an array of characters s. Leetcode Worst/ Better Loop through the string from th...

Matrix | 450 DSA | Love Babbar

Search a node in BST Given a matrix of size r*c. Traverse the matrix in spiral form. GFG The idea is to use the fact that the given tree is a BST. So, instead of transverting every node, ...

C++ | Ladder 4 | a2oj

Problem 1-10 1 Young Physicist #include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NU...

Apolitical: Dissent in the Congress, from Subhas Chandra Bose to Capt. Amarinder Singh

Apolitical: Dissent in the Congress, from Subhas Chandra Bose to Capt. Amarinder Singh

Unicorn: the new national animal of India

Yesterday PM declared 16th January as the National Start-Up Day …

Figuring Out Part: Indian Judiciary System

Figuring Out Part: Indian Judiciary System

Figuring Out: NFT and DeFi

What is NFT? NFT or “Non-Fungible Token” is a token that exists on a distributed ledger/blockchain and these cryptoassets have unique identification codes and metadata that set them apart from eac...

Vim Cheat Sheet

What is Vim ? Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is an improved fork of vi. Installation sudo apt install vim ...

Installing and using MermaidJS

Mermaid JS Mermaid is a Javascript-based diagramming and charting tool that renders Markdown-inspired text definitions to create and modify diagrams dynamically. Installation Click h...

Markdown Cheat Sheet

What is Latex ? LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. What is MathJax ? MathJax is an ope...

Making Linux Terminal Awesome

Making Linux Terminal Awesome Zsh The Z-shell or Zsh is an UNIX shell with support for various plugins and themes. sudo apt install zsh [ Debian/Ubuntu ] sudo yum install zsh [ Red...

Installing MathJax & Latex Cheat Sheet

What is Latex ? LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. What is MathJax ? MathJax is an ope...