python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Counting the leaves of a binary tree using recursion: the final return statement of (recursive function)+(recursive function)
I have been learning binary trees lately and have looked through the code for counting the leaves.
This is the recursive function to count the leaves:
def __count_leaves_recursive(self, node):
if...
James
Votes: 0
Answers: 1
Need to decode CLUSTD column SAP Hana
i am looking to decode the CLUSTD column of SAP, which is in encoded form as binary. I want to decode it outside SAP, I know READ_TEXT helps decode it but it is in SAP environment.
My CLUSTD is in SNo...
Tanmoy banerjee
Votes: 0
Answers: 0
Actual answer is 11100 but we got 00111,how to reverse this
b=[]
def number(num):
if num==0:
return
if num%2==0:
print("0")
a=num/2
else:
num//2==0
print("1")
a=num//2
return n...
bhushan bowlekar
Votes: 0
Answers: 2
converting decimal to binary without the bin() function in python
I've looked into other solutions online and my own and all of them gave the exact same output, and thats my terminal being spammed with 1's.
this is my code, (I'm very new to coding so please forgive ...
Riaz
Votes: 0
Answers: 0