# Category: Algorithms and Data Structures

## [Microsoft interview questions] Find the smallest node greater than a certain key value in a binary search tree

Hits: 0Find the smallest node greater than a certain key value in a binary [search tree] such as          8       / \ 6         12...

## [Google Interview Questions] Find the minimum distance between two elements in an array

Hits: 0An array with repeated elements, given two numbers num1 and num2, find the minimum distance between the positions of these two numbers in the array O(n) [time complexity] [time complexity] , O(1) space...

## [Algorithm Foundation 1] Character Encoding Classification

Hits: 0 ✅ About the author: Hello everyone, I am Xin Xiaobai 2022 , let’s learn together and make progress together! 🏆 📃 [Personal homepage: New Xiaobai’s CSDN blog] in 2022🔥Series of columns: Introduction...

## Simple implementation of hashtable

Hits: 0A simple hashtable is implemented in this article, which is not necessarily practical, but reflects the principle of hashtable, and if a hashtable is implemented in the interview, the implementation of this article...

## Numbers that appear only once in an array

Hits: 0**All rights reserved, please indicate the source when reprinting, thank you! Topic one: All numbers in an array of [integers appear twice, except] for one number that appears only once . Please write...

## Design an algorithm to determine if set A is a subset of set B

Hits: 01. Topic: [Assuming that the linked lists] A and B of the leading node in increasing order represent a set respectively, try designing an algorithm to determine whether set A is a subset...

## Data Structure Sorting Algorithms – Bubble Sort, Insertion Sort, Hill Sort, Heap Sort, Merge Sort

Hits: 0[Sorting Algorithm] #include<stdio.h> #include<iostream> #include<stdlib.h> using namespace std; typedef int ElementType; // Bubble sort //N is the number of array elements void baboSort (ElementType A[], int N) { for ( int i =...

## High precision – subtraction of two numbers (C language)

Hits: 0 Topic description: Find the difference of the subtraction of two large positive integers Input There are 2 lines in total, the first line is the minuend a, the second line is the...

## High precision—addition (C language)

Hits: 0 The first time I came into contact with [high precision] , I was overwhelmed, I will teach you! Anyone who has learned programming in addition knows that, but if the data is...

## Algorithms and Data Structures – Adjacency Matrix Storage and Adjacency List Storage for Graphs

Hits: 0storage of graphs [adjacency matrix] [A matrix is ​​used to represent the adjacency relationship and weight] between vertices in the graph . Suppose there are n definite vertices in the graph Graph=(V,E), V=|v0,...