JavaScript
JavaScript copied to clipboard
Repository for JavaScript codes and algos.Star the repo too.
PULL REQUESTS WILL BE MERGED Thankyou so much everyone for contributing in the repository. As i am the only one to manage the repo so after some simple checks I...
Take N (number of rows), print the following pattern (for N = 4). 1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 Input...
Add in searching sorting repo
Star This Repo ⭐⭐⭐ Please make sure to star this repository before contributing. YOUR CONTRIBUTIONS TOWARDS OPEN SOURCE DSA ARE VALUABLE⭐ HAPPY CODING!!
Take as input S, a string. Write a function that does basic string compression. Print the value returned. E.g. for input “aaabbccds” print out a3b2c2d1s1. Input Format A single String...
Find HCF
Given N positive numbers, your task is to calculate their HCF. Input Format First line of input contains a single integer N, second line contains N space separated positive integers...
Take N (number in decimal format). Write a function that converts it to octal format. Print the value returned. Input Format Constraints 0 < N
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and - Input Format Input two integers a and b Constraints...