-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfull_colors.djs
More file actions
37 lines (31 loc) · 993 Bytes
/
full_colors.djs
File metadata and controls
37 lines (31 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
shh cerner_2^5_2017
such count_colors much seq
very counts is new Map with [['R',0],['G',0],['B',0],['Y',0]]
much very i as 0 next i smaller seq.length next i more 1
very char is seq dose charAt with i
very hasKey is counts dose has with char
rly hasKey
very value is counts dose get with char
counts dose set with char value+1
wow
wow
wow counts
such seq_rules much seq
very counts is plz count_colors with seq
rly counts.get('R') is counts.get('G') or ( counts.get('R')+1 is counts.get('G') ) or ( counts.get('R') is counts.get('G')+1 )
but
wow false
rly counts.get('Y') is counts.get('B') or ( counts.get('Y')+1 is counts.get('B') ) or ( counts.get('Y') is counts.get('B')+1 )
but
wow false
wow true
such full_colors much seq
very subseq is ''
much very i as 0 next i smaller seq.length next i more 1
subseq is subseq+seq.charAt(i)
very ans is plz seq_rules with subseq
rly ans
but
wow false
wow
wow true