Skip to content

Instantly share code, notes, and snippets.

View nihal-singh's full-sized avatar
📚
Always Learning !

NIHAL SINGH nihal-singh

📚
Always Learning !
View GitHub Profile
/* Deleting a node from Binary search tree */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find minimum in a tree.
Node* FindMin(Node* root)
/* C++ program to find Inorder successor in a BST */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find some data in the tree
class Solution {
public int removeDuplicates(int[] nums) {
int len = nums.length; // calculate length of the array.
if(len == 0 || len == 1)return len; // return length if array has zero or only one element.
int lastMem = nums[0]; // stores the element that is not duplicate
int count = 1; //return count at last so as to get the unique element count
int index = 1;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nihal-singh
nihal-singh / Numpy1D.ipynb
Last active August 26, 2020 12:42
Coursera Python For data Science
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nihal-singh
nihal-singh / PY0101EN-5.1_Intro_API.ipynb
Created August 26, 2020 08:57
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nihal-singh
nihal-singh / SpeectToText and LanguageTranslator.ipynb
Last active August 26, 2020 12:39
Coursera Python For Data Science Course
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.