xxxxxxxxxx
Best one is
https://online.visual-paradigm.com/diagrams/solutions/free-flowchart-maker-online/
no login and works fine <3
xxxxxxxxxx
int set_user_pattern(int row, int col)
{
if(row > LED_MATRIX_ROW - 1)
{
printf("ERROR: %s: %d: Out of range \n", __FUNCTION__, __LINE__);
return 1;
}
if(col >= LED_MATRIX_COLUMN)
{
int req_shift = col - LED_MATRIX_COLUMN ;
int shift;
for (shift = 0 ; shift < req_shift; shift++)
{
shiftLeft();
}
led_matrix_page_rendering(row, LED_MATRIX_COLUMN - 1);
}
else
{
led_matrix_page_rendering(row, col);
}
return 0;
}
xxxxxxxxxx
#include <iostream>
#include "Stack.h"
using namespace std;
int main()
{
setlocale(LC_ALL, "ru");
Stack S;
for (int i = 0; i < 5; i++)
{
S.Push(i);
}
int lastEl = S.Pop();
S.deleteStack();
return 0;
}
xxxxxxxxxx
def linearSearch(array, n, x):
for i in range(0, n):
if (array[i] == x):
return i
return -1
array = [2, 4, 0, 1, 9]
x = 1
n = len(array)
result = linearSearch(array, n, x)
if(result == -1):
print("Element not found")
else:
print("Element found at index: ", result)
xxxxxxxxxx
def linearSearch(array, n, x):
for i in range(0, n):
if (array[i] == x):
return i
return -1
array = [2, 4, 0, 1, 9]
x = 1
n = len(array)
result = linearSearch(array, n, x)
if(result == -1):
print("Element not found")
else:
print("Element found at index: ", result)