Print matrix in spiral form

someone September 27, 2020
Question : The question is pretty much clear that we have to print the matrix in spiral form. So for this we will take four pointers pointi...Read More

Insertion Sort

someone September 13, 2020
We consider we have two parts in array : 1) Sorted Part 2) Unsorted Part In this algorithm we try to move element from unsorted part to sort...Read More

Git Commands

someone September 08, 2020
Upload local project on GitHub 1) Git Bash in the directory of you project. 2) Type git init to initialize git folder 3) Type git add . to...Read More

Substring Atcoder

someone September 01, 2020
Substring , basically in this question we have to change main string (S) so that substring (T) can fall into it. We will apply naive appr...Read More

Array

someone August 31, 2020
Other Resources  Data Structures   Questions : Insertion in unsorted array  Read More

Insertion in unsorted array

someone August 31, 2020
Problem Statement : Given unsorted array & element to insert. WAP to insert that element to its correct position.   Approach   1) Sor...Read More

Algorithms

someone August 28, 2020
This page contains detailed tutorials on different Algorithms.   Topics : Selection Sort Insertion Sort  Read More

Selection Sort

someone August 28, 2020
Basically in this technique we take minimum element from entire array & swap it with the 1st element. After this we take minimum from en...Read More

Perfect Squares

someone August 24, 2020
Perfect Squares , we will pre calculate all perfect square & store in map. #include<bits/stdc++.h> using namespace std; #de...Read More

Chef Jump

someone August 24, 2020
Question link : Here   Prerequisites : Find angle between minute & hour hand    Basically in this question we have to print minimum an...Read More

Find angle between given time

someone August 24, 2020
Question : Find Angle between 12:30 We can see that hour hand pointing to 12 h and minute hand to 30 min   Related Question : Chef Jump  ...Read More

Random in JS

someone August 24, 2020
We will use Math.random() function. When you use this function you will get numbers between [0, 1) non-inclusive of 1.    var random = Ma...Read More
Powered by Blogger.