This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int length; | |
int list[1000]; | |
void swapHalves(){ | |
int tempList[length]; | |
int mid = length/2; | |
for(int i = 0; i < length; i++) |