so what's the point of running a powershell command
so what's the point of running a powershell command
& = address of operator* = value of addressb is now the address of a*b is 12a will be the same on *bqsort()YES is because 6 is the same in the 2 halves&*b*bqsort()YES
YES
NO
YES
YES
NO
NOYES6system("netstat");int a = 12;
int* b = &a;system("PowerShell start YOUR COMMAND -verb RunAs");#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifndef _bool_true_false_are_defined
typedef short bool;
#define false 0
#define true 1
#endif
int cmpfunc(const void *a, const void *b)
{
return *(char *)a - *(char *)b;
}
bool lapindrome(char *str)
{
size_t len = strlen(str);
int split = len / 2;
if ((len % 2))
{
split++;
}
char *part1 = (char *)malloc(split + 1); // For NULL character
char *part2 = (char *)malloc(split + 1);
memcpy(part1, str, split);
memcpy(part2, str + len / 2, split);
qsort(part1, strlen(part1), sizeof(char), cmpfunc);
qsort(part2, strlen(part2), sizeof(char), cmpfunc);
if (!strcmp(part1, part2))
{
return 1;
}
return 0;
}
int main()
{
char* lapindrome_test[] = {"6", "gaga", "abcde", "rotor", "xyzxy", "abbaab", "ababc"};
for(int i = 0; i < sizeof(lapindrome_test) / sizeof(lapindrome_test[0]); i++)
{
if(lapindrome(lapindrome_test[i]))
{
puts("YES");
} else {
puts("NO");
}
}
return EXIT_SUCCESS;
}<script>
s=prompt()
x=[],y=1
n=s.length/2
for(c of s.substr(0,n))x[c]=(x[c]??0)+1
for(c of s.substr(n+.5,n))--x[c]
for(_ in x)y&=x[_]===0
alert(!!y)
</script>