Skip to content

Instantly share code, notes, and snippets.

View thhmoc67's full-sized avatar
πŸ‹
if life gives you lemon make a lemonade

Dayal Sharan Saini thhmoc67

πŸ‹
if life gives you lemon make a lemonade
  • HelloWorld Technologies India Pvt. Ltd.
  • Bangalore
View GitHub Profile
@thhmoc67
thhmoc67 / javascript_deep_dive.md
Created March 18, 2021 12:21 — forked from romainl/javascript_deep_dive.md
JavaScript Deep Dive to Crack The JavaScript Interviews
@thhmoc67
thhmoc67 / InputOTP.js
Created January 7, 2021 10:03
OTP component
import React from 'react'
import './styles.scss'
import { elem } from '_helpers/css'
/**
* @param {length} number - Default value is 4
* @param {error} string - Default value is none
* @param {placeholder} string - Default value is none
* @param {onChange} function - Default value is none
*/
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int arr[n][n];
for(int i=0;i<n;i++)
#include <iostream>
#include<cmath>
using namespace std;
unsigned long long ffnum(unsigned long long x){
long long p=1;
unsigned long long sol=0;
while(x){
if(x&1){
sol+=p;
#include <iostream>
#include<climits>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int n;
cin>>n;
#include <iostream>
using namespace std;
int main()
{
//code for find isprime
//time complexity is: nlog n
int lim=1000000;
int isprime[lim]={0};
isprime[0]=isprime[1]=1;
for(int i=2;i<lim;i++){