52 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
259
views
How to dynamically calculate ZigZag Indicator?
I try to implement ZigZag Indicator in TypeScript.
My ZigZagCalculation function accepts as a parameters: Bar[] bar, deviation: number
And returns array with all the zig-zag points.
My bar array has a ...
1
vote
1
answer
220
views
Zig Zag cocatenation print issue
I am trying to solve the GeeksForGeeks problem Concatenation of Zig-Zag String in n Rows:
Given a string and number of rows ‘n’. Print the string formed by concatenating n rows when the input string ...
-2
votes
1
answer
168
views
How to make a vertical zig zag? That generates random letters ? As a beginner I'm not understanding
This is the line of code I have as a foundation of what I need to do.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <time.h>
4 #include <unistd.h>
5
...
3
votes
0
answers
179
views
How can I draw a zigzag underline on a specific text of an EditText, similar to a spell-check underline?
Description: I want to be able to draw a zigzag line span on a text with a given start and end position of an EditText in Android. I have tried using a custom ReplacementSpan class to draw the zigzag ...
-4
votes
1
answer
496
views
Detecting zigzags in an array using python [closed]
I'm new to programming and studying python. I solved the following "zigzag" question using python language.
You are given an array of integers and your task is to check all the triples of ...
-1
votes
6
answers
3k
views
Looping through triplets for zigzag pattern
I am trying to see if groups of three with consecutive elements have a zigzag pattern. Add to an empty list "1" for a zig, "1" for a zag, or "0" for neither. It seems to ...
1
vote
0
answers
1k
views
Pine Script \ Simplify Logic For Detecting Pivots
The goal of these questions is to find out solutions for the two points of improvements described below
Indicator Objective
Get the pivot lines, considering a sequences of bull bars, identify the low ...
1
vote
2
answers
1k
views
generate an ordered zig-zag set of points (path) given bounds, direction, and starting point
say we want to generate a zig-zag set of points as a numpy array like the following image such that the array elements' order is similar to moving on the path:
we are given:
The bounds where this ...
1
vote
1
answer
2k
views
Compute slope/derivative values of zigzag line
I would like to compute the slope/derivative of each zigzag line, and show them above/below the zigzag line. How to do this?
Example of zigzag:
//@version=4
study("ZigZagSlope", overlay = ...
2
votes
0
answers
189
views
How to add Zigzag line or layer between two images in android?
I am working on Merging or Collage types frames in android and I have Zigzag view between them, How could I get Zigzag pattern between the images.
Here is an example, What I required:
Note: Here are ...
1
vote
1
answer
2k
views
Zig Zag when using geom_line with ggplot in R
I would really appreciate some insight on the zagging when using the following code in R:
tbi_military %>%
ggplot(aes(x = year, y = diagnosed, color = service)) +
geom_line() +
facet_wrap(vars(...
1
vote
1
answer
415
views
Text edge zigzag effect removal (OR finding the dominant color for a image region)
My goal is to draw the text bounding boxes for the following image. Since the two regions are colored differently, so this should be easy. I just need to select the pixels that match a certain color ...
-1
votes
1
answer
46
views
Can someone tell me the time complexity of my solution to this problem of zigag traversal [closed]
ZigZag traversal
This is one of the question from algoexpert and this is my solution involving math
def zigzagTraversal(arr):
out = []
test = 1
out.append(arr[0][0])
while test <= len(arr)+len(arr[...
0
votes
1
answer
305
views
Is there a way to create a background with a zig-zag effect on the top, left, bottom, and right side of a body?
I have tried creating multiple containers, then rotating them from 360 to 270, to make them go around the page, but it has not worked.
CSS:
.zigzag-section:after{
content:'';
position:absolute;
...
0
votes
1
answer
775
views
PineScript - zigzag trend change counter
I've made an indicator that is similiar to zigzag. I want to write a formula that will count number of up trends or number of trend changes (from up to down and from down to up). I have problem with ...