Skip to content

Instantly share code, notes, and snippets.

View SanowerTamjit's full-sized avatar
🎯
Focusing

Sanower Tamjit SanowerTamjit

🎯
Focusing
  • Mi-C3 International Ltd.
  • Remote
View GitHub Profile
#define NULL_VALUE -99999
#define SUCCESS_VALUE 99999
struct listNode
{
int item ; //will be used to store value
struct node *next ; //will keep address of next node
struct node *prev ; //will keep address of previous node
} ;
struct listNode * list ;
struct listNode * tail ;
@SanowerTamjit
SanowerTamjit / FilePathsToJsonTree.java
Last active March 19, 2019 08:39
Random file paths to file tree structure using java
import java.util.*;
public class FilePathsToJsonTree {
public static void main(final String... args) {
List<String> filePaths = new ArrayList<>();
filePaths.add("root/a/1.txt");
filePaths.add("root/");
filePaths.add("root/a/");
#include<stdio.h>
int length;
int list[1000];
void swapHalves(){
int tempList[length];
int mid = length/2;
for(int i = 0; i < length; i++)