Skip to content

Instantly share code, notes, and snippets.

View 0xdarkcap's full-sized avatar
💭
learning ❤️

0xvar 0xdarkcap

💭
learning ❤️
View GitHub Profile
### Keybase proof
I hereby claim:
* I am varunsangwan on github.
* I am mrdarkcrypto (https://keybase.io/mrdarkcrypto) on keybase.
* I have a public key ASAcpVetKDy7MTgSE7tuC53O_E1YjO1BpPQcM4rzFv8-Gwo
To claim this, I am signing this object:
@0xdarkcap
0xdarkcap / smallest greatest element.c
Last active March 28, 2018 00:18
An array is given of n length, and we need to calculate the next greater element for each element in given array. If next greater element is not available in given array then we need to fill ‘_’ at that index place.
#include <stdio.h>
int main()
{
int i,j,c,n,min,flag=0,d=0;
scanf("%d",&n); //scanning the number of element in array.
int a[n],b[n];
for(i=0;i<n;i++)
{